Page 1 of 1

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

Posted: Wed Oct 21, 2009 2:58 pm
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.

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

Posted: Fri Oct 23, 2009 1:41 pm
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.

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

Posted: Tue Oct 27, 2009 3:09 pm
by Sonya
Better use content_dump plugin for your needs http://wiki.cmsmadesimple.org/index.php ... ntent_dump