Own dynamic Navigation Links Own dynamic Navigation Links
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Own dynamic Navigation Links

Started by hozyali, June 23, 2008, 10:59:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hozyali

Hi,

I know it might be a wrong board to post this topic, but I was unable to post a new topic in Mods / Navigations menu boards.

I have a simple CMS developed by me and and am using CPG theme so it all works fine. Issue here is I want to just open a mysql table and fetch the available links from my own table and display those links under the navigation bar of CPG. I know I can't just do a while loop on mysql under /classic/template.html so can someone please advise where and in which file I can put my code to just initiate a php loop on my db table of contents?

Looking forward to hear.

Regards
Ali

Joachim Müller

Quote from: hozyali on June 23, 2008, 10:59:42 PM
I know it might be a wrong board to post this topic, but I was unable to post a new topic in Mods / Navigations menu boards.
Thank god that board is locked for you, as you're not suppossed there. From the board description:
QuoteModifications/Add-Ons/Hacks
The Modifications/Add-Ons/Hacks board is for actual mods and hacks contributions. It is not for requests for mods and hacks. Regular users are not able to post new threads to prevent this board from being cluttered by requests.

Quote from: hozyali on June 23, 2008, 10:59:42 PM
I have a simple CMS developed by me and and am using CPG theme so it all works fine. Issue here is I want to just open a mysql table and fetch the available links from my own table and display those links under the navigation bar of CPG. I know I can't just do a while loop on mysql under /classic/template.html so can someone please advise where and in which file I can put my code to just initiate a php loop on my db table of contents?
Create a custom token (the stuff in curly braces) and create the corresponding functionality in themes/yourtheme/theme.php. Should be easy to do if you're actually able to code a CMS of your own. Has been asked and answered often already - search!