VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: guybr on November 25, 2014, 08:56:38 AM

Title: Dynamic page links for category default.php view?
Post by: guybr on November 25, 2014, 08:56:38 AM
Hi, I'm trying to create image-only displays for the different categories and sub-categories. This requires me to create new pages for each of those special displays (i.e. one page per category or subcategory).

I'd like to use an icon-link from the category pages to link to the relevant image page for that category page (rather than, say, a [additional] special menu whose links leads to those pages).

How do I edit the php code so I can feed a dynamic url? In other words, I'm trying to avoid hardcoding a specific URL (or set of URLs), and instead use some fluid, formulaic approach right in the php page, whereby VM will know how to fill the URL with a value so it leads to the correct category/sub category image grid page. Is that possible?

I'm using VM 2.6.6