am using joomla 2.5, k2 as a content manager. am trying to display related articles by category under every k2 article. so i instaled module everywhere, create a new k2 template and finaly add this code : <h3>Voir Aussi</h3>
{module Related By Category|category_id=<?php echo $this->item->category->id; ?>}
4 articles are displaying but they don't belong to the same category of the article.
here is the link for my site: my site
how can i fix it?
Related
I'm learning Wagtail and I'm trying to make a basic Ecommerce style site. The layout will be:
Home Page
-> Products
-> Product 1
-> ...
-> Product N
-> About
-> Contact
In the Product page I want to have a Title, Description, Picture gallery or just display a few pictures and eventually tags (But this post is about the Images). I have checked this Documentation which explain how to add Abstract Images in the View but it leaves me confused on what to import and add to the model, what type? when I just want to add 1,2...n Images on a Product page. The documentation only explains how to add an Image into a form and it leaves me wondering should I use a Django type or Wagtail type?
How would I add the ability to upload/remove images from the admin console Product page?
I am trying to assigning a menu with category blog type. The article category is custom created and it is at level 2. Means
i have a root article category say 'rootcategory'. if i assign menu to this category it is fine.
but i have a child category under 'root category' say child- 1. if i assign this to menu
it is showing error. like category not found .
Please help me . Thanks in advance
Have you linked "child- 1" with a valid article/ category blog /... which has not the status "registered" or "special"?
Could you provide a URL?
I would like to add a custom "trending topics" section to my news website at the top of the homepage. An existing example that shows precisely what I am looking for is the Daily Beast homepage.
I would like to do this with custom code or with a plugin, but not as a widget. Does anyone know how I can do this in a flexible way that can easily customize to style and look of my website.
My site is a Spanish language 24/7 news website called Yasta.pr. Thx!
it depends on how you are storing your data in your database but you can try this:
add a div section in the header of your webpage above the menu bar.
then you can dynamically add the most trending topic to it automatically when the page starts by inserting this code inside it:
<div id="*id_name">
$query = "SELECT * FROM *table_name ORDER BY *most_trending_column LIMIT 1";
mysql_select_db(*database_name, *connection);
$result = mysql_query($query) or die(mysql_error());
$data = mysql_fetch_assoc($result);
echo "<h3 id='*id_name'>" . $data['*title_column_name'] . "</h3>";
</div>
dont forget to connect to your database first.
I'm creating a marketplace website such as Craigslist. I'd like to make "post-forms" for users to post their own product information (by uploading photos, adding forms (name, price,condition,,etc.)) on my website' category-page.
Now, I think I can do these things by making use of "Django Permission", but is it correct? If so, how can I do that? Or if not, there are other ways to allow users to do these things ?
The short summary of my website is like below. Specifically,I'd like to know how to allow people to post their products on the category page.
Register & Login
You would have several categories such as furniture, books, games,,, and then, click one of those categories. (I've created this category-page by using "Django admin")
(eg. )
http://bakersfield.craigslist.org/
Then, you can see what kinds of goods are sold on that category page. And then, At the top of website, you can find "Post" button to post our products on the top of my website.
And after click it , you can find "Posting title" "Price" and "upload photos" and many other forms.
(eg)
https://post.craigslist.org/k/7v...
4.After filled those forms,then click "submit" button to post your products pages' link to category page.
Craigslist is the best example for my website.
I am using Joomla 2.5.6 and using my custom query wants to fetch all articles by category id. I study Joomla 2.5.6 db model and found xma7k_content table is stores Articles meta and xma7k_categories stores Category info & it seems that we can easily fetch records by id, the alias in xma7k_content table is exactly what the article tile is but the path to view the article is some thing like
destinations/2012-08-08-05-05-05/thailand/overview-of-trips
which stored in xma7k_menu table.
If I remove date/time from path while creating article. (But how I
could?)
or how I could use JOIN xma7k_content, xma7k_categories &
xma7k_menu tables to get required result
Use Acesef Joomla extension and you can define your own SEF URL for the page, download here http://www.joomace.net/joomla-extensions/acesef-joomla-seo-sef-urls.
Check the document for more info.