Keyword

Templating the Latest items view

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92051 by Manuel Diaz
Templating the Latest items view was created by Manuel Diaz
After a clever answer from the guys at the spanish forum, I'm about to customize the latest.php file, so that the items and category info show the way I want them to show.

 

Any experiences with that particular file?

 

I will make it like this:

 

 
Attachments:

Please Log in or Create an account to join the conversation.

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92052 by Manuel Diaz
Replied by Manuel Diaz on topic Templating the Latest items view
First issue:

If create a subtemplate and customize latest.php in in, it won't work. I tried setting the custom template in the backend, to the main category and the subcats, and the customization didn't stick.

 

As soon as renamed my override to "default", the changes were viewable. So, no subtemplating when it comes to latest items.

 

Please Log in or Create an account to join the conversation.

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92053 by Manuel Diaz
Replied by Manuel Diaz on topic Templating the Latest items view
Second issue:

I want to customize each category block, so I need some kind of identifier for the "latestItemsContainer" tag. Any ideas?

Please Log in or Create an account to join the conversation.

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92054 by Manuel Diaz
Replied by Manuel Diaz on topic Templating the Latest items view
Solution: I added the category alias as a class. In my case, I wanted to customize the category tittle, so:

<h2 class="<?php echo $category->alias; ?>">

Please Log in or Create an account to join the conversation.

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92055 by Manuel Diaz
Replied by Manuel Diaz on topic Templating the Latest items view
Issue 3:

For some reason, the latest items view does not have breadcrumbs.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum