Display a table with page titles that aren't in the menu

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mikepreble
New Member
New Member
Posts: 2
Joined: Wed Oct 21, 2009 2:20 pm

Display a table with page titles that aren't in the menu

Post by mikepreble »

CMSMS 1.6.6; PHP 5.2.2
Part of the site I"m setting up is going to be using CMSMS to enter/maintain meeting notes.  Each note entry needs to be it's own content entry in the database and will be under the same section header.  I'm putting it all behind FEU (FEU is setup and working fine). 

I'd like the page that people get to after logging into FEU to display a table with the page title of each minute note entry (page title) and it's modified date which links to the content.  Because the list of notes will end up being long, I don't want it to display in the menu.  And that's my first hurdle.

I could set up the table pretty easily by just using the $nodelist array that the menu uses, but it only contains items that are menu enabled.

Here are 2 ways that I think it could be done, but I don't know the code to make it so:
  • Pull all the page titles that are under a particular parent item
  • Pull all the page titles that have 'notes' in the extra1 (or 2 or 3) field
I've tried playing with foreach / if loops using the page_attr tag and making the great UDT in http://forum.cmsmadesimple.org/index.php/topic,25380.0.html work for me, but I can't get it to come out right.

Any help/insight is appreciated.
mikepreble
New Member
New Member
Posts: 2
Joined: Wed Oct 21, 2009 2:20 pm

Re: Display a table with page titles that aren't in the menu

Post by mikepreble »

I figured this out on my own by creating a UDT that queries the content table to pull the info I need where the parent_id is the section header I'm putting everything under.

I would have appreciated help in this though.  There's probably a built in way to do it that doesn't involve creating a custom mysql query.
Sonya

Re: Display a table with page titles that aren't in the menu

Post by Sonya »

Better use content_dump plugin for your needs http://wiki.cmsmadesimple.org/index.php ... ntent_dump
Post Reply

Return to “Developers Discussion”