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.


aed module and do_next_manager

Login / Search

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

Community saint

Ok, I am working on an add-on, and most of the admin side seems to work, but my problem now is 'do_next_manager'…

When the page comes up, I want 'add type, edit type, add, edit'..   that's it..   and it is fine at first, and after an 'add' or 'edit' it comes back fine.   But after an 'add type' or 'edit type' it comes back with the options 'add type, edit this type, edit type, view'…   I don't want the 'edit this type' or 'view'…

I thought I had it figured out, but obviously I am wrong.    Any suggestions as to what I am missing or why it is defaulting in the _cat class to something it seems it should not?

Attachment
» Download: admin_ocrewards.php (17 Kb, 88 downloads so far)

Paul
Back to the top
 
Posted
Rating:
#91417
Avatar

I think if the class's view_entry_point isn't defined, it won't show that view icon.

You can get complete control over the do_next_manager if you override it in your own class. Otherwise it'll automatically construct it from the implementation in aed_module.php. I think most of the ocPortal CMS modules override it.


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:
#91418
Avatar

Community saint

I thought I did override it in my code.  I used the cms banners stuff as a guide.   

Either way I got rid of view_entry_point and that got rid of that icon.    

Now I figure I'll get rid of the override since it doesn't seem to make any difference… but then again, the way things have been going, that might bring up another error, so maybe I'll just leave the code as is.

Paul
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: