HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Is there any way to create a "view all" button to view all the catalogue entries

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#35733 (In Topic #8055)
Avatar

Fan in action

Is there any way to create a "view all" button to view all the catalogue entries

To All, does anyone knows how to create a "view all" button to view all the catalogue entries? My page displaying the catalogue entries, has a few catagories on it so that users have to click on each catagory to view the entries under it. So Right now, i'm thinking if it is possible to create a "view all" entries button using ocPortal instead of hard coding a page out to retrieve the data from the catalogue table? Thanks in advance.
Back to the top
 
Posted
Rating:
#35779
Avatar

You could kind of hack one up…

Change line 138 of sources/catalogues.php from:

Code

   if (is_null($entries)) $entries=$GLOBALS['SITE_DB']->query_select('catalogue_entries',array('*'),array('cc_id'=>$id,'ce_validated'=>1));
to:

Code

   if (is_null($entries)) $entries=$GLOBALS['SITE_DB']->query_select('catalogue_entries',array('*'),(get_param_integer('all',0)==1)?array('c_name'=>$catalogue_name,'ce_validated'=>1):array('cc_id'=>$id,'ce_validated'=>1));
and then put &all=1 on the URL of a normal category screen.

(I could also say 'the search could do this', but that's not really designed for this kind of thing.)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#35910
Avatar

Fan in action

To Chris, So there is no way for me to create a view it all button through the features of ocPortal but have to recode that page right?
Back to the top
 
Posted
Rating:
#35918
Avatar

Correct


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#35997
Avatar

Community saint

This sounds like a neat idea.
Although I would want a few all view all for just specific catagories.
Like have a link to view all jokes, then another to view all anime info, manga, ect..

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#36000
Avatar

Fan in action

Ya, I worked out a new php page to retrieve the data from the catalogue table, haha.
Back to the top
 
Posted
Rating:
#36001
Avatar

Community saint

oh thats impressive. you are probably smarter then me.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#36002
Avatar

Fan in action

Nah, you are good too! You given so much help to the rest!
Back to the top
 
Posted
Rating:
#36003
Avatar

Community saint

 indeed thats some thing I enjoy doing.

Thanks

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: