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.


Creating a new zone

Login / Search

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

Fan in action

Creating a zone

Hi all, i tried to create a new zone and i want the helper_panel to be visible as well so i copied the helper_panel code from the page source of the cms zone. I'm unsure if i am doing the right thing or not? Is there any form of

to be inserted to display the helper_panel. Can anyone please give me some direction to do it. Thanks in advance


It seems that the helper_panel of mine is way too short. I tried adding property of overflow: visible to some of the div but it doesnt seems to work as well.
Back to the top
 
Posted
Rating:
#35260
Avatar

The Help panel is defined in the GLOBAL template and basically is shown if ocPortal itself sets something to go there (usually either a tutorial reference, some help). You're better off creating an ocPortal module rather than trying to work from Comcode pages. You can then run ocPortal PHP commands to load up do-next manager buttons and help panel contents.

mynewzone/pages/minimodules_custom/example.php

PHP code

<?php

require_code
('templates_interfaces');
$title=get_page_title('Student Content Management',false);
$text='Hello';
$main=array(
   array(
'blog_icon',array('blog',array('type'=>'ad'),'_SELF'),'Add a blog entry'),
   array(
'business_idea_icon',array('business_idea',array('type'=>'ad'),'_SELF'),'Add a business idea'),
);
$tempcode=do_next_manager($title,$text,$main,'Content Management');
$tempcode->evaluate_echo();
$GLOBALS['HELPER_PANEL_TEXT']=<<<END
blah blah blah
END;

?>

This example assumes you have bigicons/blog_icon.png and bigicons/business_idea_icon.png files in your theme's images_custom directory.

p.s. You missed an 'r' in your logo image.


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

Fan in action

Creating a mini module?

How do i go about creating a mini module then? I'm sorry if i ask a dumb question. :p 
Back to the top
 
Posted
Rating:
#35313
Avatar

Hi,

Check the path I gave just about the code sample. A minimodule is a PHP script saved under such a path (path also corresponds to the zone it is in).


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

Fan in action

 Ya, i found it out and test it out too. So now i'm done with this zone, what about the links when i click those buttons? Do I have to re-create those pages again? or can i use the pages from the cms like for my case, adding a blog entry is the same as adding a new entry. Also, how to make the roll over effect for the helper text to appear? Thanks once again.
Back to the top
 
Posted
Rating:
#35330
Avatar

Here's one of the lines, modified,

Code

   array('blog_icon',array('cms_news',array('type'=>'ad'),'cms'),'Add a blog entry','Blah blah this text is hovered'),

Going from left to right:
  • the icon theme image name
  • the page name (cms_news)
  • the list of URL parameters (in this case, one: 'type' as 'ad')
  • the zone (cms)
  • the link caption
  • the hover text


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

Fan in action

Reply to Chris

Wow, this is soo cool! hahaz. I just wish that someday, someone would compile all the help which Chris has given to all into one tutorial. Would that be fantastic? Hahahz.
Thanks, Chris, for the help you have given to me. Thanks alot! =)
 
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: