mayid Posted January 11, 2011 Share Posted January 11, 2011 I'm looking for a way to display a list of categories with an image. But not like adding an icon in the Category module. I need a 90x90 image and the name of the category bellow. So, i show modify the template of the module, i guess. And find the way to display an image. Too hard!. Is there some other way to do it? Link to comment Share on other sites More sharing options...
DevNet Posted January 11, 2011 Share Posted January 11, 2011 Hi,Just a little solution :Edit your modules/blockcategories/category-tree-branch.tpl file, and change the first line : to You can test the jpg pics presence, and adjust css.Best regards Link to comment Share on other sites More sharing options...
mayid Posted January 11, 2011 Author Share Posted January 11, 2011 That's it. Thanks a lot!Is there an API or how do you know this kind things?Oh! I moved the categories module to the "Homepage content" Hook. But now i can't see it. I just want the list in the main page, you know? And not inside a column, but 100% width. Any clue?note: i won't work in the footer either. I just can't see it after copying from the "positions" panel. Link to comment Share on other sites More sharing options...
DevNet Posted January 11, 2011 Share Posted January 11, 2011 Is there an API or how do you know this kind things? It's just my jobI just want the list in the main page, you know? And not inside a column, but 100% width. Any clue? You must create a statement hookHome in the class module to do that, and associate a template based on hookLeftColumn so it uses the div / css middle of the page.It is a development stage more complex for a non-developer.Best regards Link to comment Share on other sites More sharing options...
mayid Posted January 11, 2011 Author Share Posted January 11, 2011 Well, i'm a PHP developer, and i don't now much about Smarty but i can edit templates of course.Unfortunately, english is quite hard for me to understand some times. Did you meant that the Categories module can't be placed in certain Hooks? So i should edit some stuff? What you mean "statements hookHome in the class module"? I though it was going to be as simple as copying the module to the homeHook but i see it's not.If you could link me to some docs or explain the point a but more i'd be grateful. Kind regards. Link to comment Share on other sites More sharing options...
mayid Posted January 11, 2011 Author Share Posted January 11, 2011 Solved. I'm using a third column with clear: both and width: 100% to store my home page contents. Then i add a Smarty conditional to be sure it's the index page. Link to comment Share on other sites More sharing options...
Recommended Posts