News:

Support the VirtueMart project and become a member

Main Menu

Dynamic page links for category default.php view?

Started by guybr, November 25, 2014, 08:56:38 AM

Previous topic - Next topic

guybr

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