You can see my solution to this issue here: www.zandergraphics.net/studio-blog/k2-images.html I agree it would be better to do this in the resize process itself, but this works nicely until they manage to work a solution into the core.
I was trying to put it in the main Joomla template in order to change the page backgrounds based on the category. I should have been more specific in what template I was talking about. Lukas said:In /sometemplate/item.php it works for...
class="background-< ?php $this->item->catid; ? >" returns class="background-"> Obviously the spaces are removed in the real code... I can't seem to figure it out... Lukas said:< ?php $this->item->catid; ? > Regards, l
I've been able to get < ?php echo "$Itemid";? > to return the current menu ItemID, but what I would really like to do is return the current item's category from K2. I've tried several pieces of code, including < ?php echo...
I guess the point is that it seems to be a disadvantage that there isn't a way to tell if an article is published or not without checking through the entire category on the front end to make sure it isn't there. In core Joomla, when an...
From what I can see, when you change the Finish or Start Publishing date in the K2 back end, it changes the publish_up or publish_down entry in SQL. Then the K2 view calls a query that filters out results based on the date range such as:...
Okay... new perspective now... it seems that the article is being unpublished in the front end, however, if I look at the Item List in K2, it still shows it as published. If I turn the autoarchive plugin back on the article is unpublished...
William White said:Please post a link to the autoarchive you are using Here is a link to the plugin page: keepjoomla.com/bovitmenyek/k2-autoarchiver.html However, even when this is disabled, I still can't get the start or finish...
i am developing a site where there will be a News section that needs to use the start/finish publishing fields (actually it will hopefully autoarchive when it is done), however, when I went to test the autoarchive plugin functions (third...
Better late than never I guess... I came across this same problem and this is the code I used to accomplish it: < ?php jimport( 'joomla.application.module.helper' ); $modules = JModuleHelper::getModules( 'moduleposition' ); foreach...
More