Nuclear General Posted September 4, 2011 Share Posted September 4, 2011 File Name: IPContent Pages Sidebar Navigation Block+Hook File Submitter: Nuclear General File Submitted: 04 Sep 2011 File Category: Content Management Tired Of Manually Building Your IPContent page links? Do You just want a block/board index hook that pulls from admin-defined choices of a full list of created IPContent Pages? I am Very Pleased To present a pleasingly usable system for managing your IPContent links sans all the hassle.... This File Features Block usage of methodology explained here http://community.inv...k-template-r576 to pull from the same settings the hook does, therefore allowing a seamless transition between block and hook template modifications in-skin. Demos:HOOKBLOCK When the Hook/Block Is On an IPC Page, it will ALWAYS display active coloring background on the menu item, whether accessed by id, page file-name, or even your default page when accessed without either(including app=ccs, and domain.com/ ), database compatible, No JS Used. The Block Should Be Considered of the Nature of a Plugin, it shows data dynamically based on the current page... do NOT set a cache value if you Want Active to work. here to download this file Link to comment Share on other sites More sharing options...
Real Mythotical Posted September 10, 2011 Share Posted September 10, 2011 The block isn't showing up. I have it set to display the sidebar block and the navbar one is turned off. Any suggestions? Link to comment Share on other sites More sharing options...
Real Mythotical Posted September 10, 2011 Share Posted September 10, 2011 I figured it out. I had the wrong parse block name. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted September 20, 2011 Share Posted September 20, 2011 this file has been patched.... Now ALL non-js/css pages are selectable, tabs honor page viewing permissions, and the navigation bar has a much cleaner(and possibly somewhat familiar :P ) appearance.... 2 primary_nav's looked ugly. Link to comment Share on other sites More sharing options...
Robert Simons Posted September 20, 2011 Share Posted September 20, 2011 you should add in an option for the bar placement if possible .. personally I think it looks better above the breadcrumb (could be I'm just used too seeing that way too LOL) .. but all in all .. very nice job :grin: Link to comment Share on other sites More sharing options...
Marcher Technologies Posted September 20, 2011 Share Posted September 20, 2011 you should add in an option for the bar placement if possible .. personally I think it looks better above the breadcrumb (could be I'm just used too seeing that way too LOL) .. but all in all .. very nice job :grin: Why i Include a block. Simply no good hook points that it can slide into sans fuss besides mainContent. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted September 21, 2011 Share Posted September 21, 2011 This Last Update Was a Simple CSS bugfix for the nav bar. Links should stay tidy now.... Simply reimport the hook.xml Link to comment Share on other sites More sharing options...
tenaki Posted October 3, 2011 Share Posted October 3, 2011 Hi It seems to be picking up the css for the default template. I have two templates based on the default but just changes of color. The block seems ok colorwise just the links I have changed #category_list ul a:hover { background: #8fb387; border-right: 10px solid #24641a; In ip_content.css But it isn't making any difference Actually this could be a bug with the block as I have another standard navigation block which was also showing the wrong color. When I removed the (MT)IPContent Pages Sidebar Navigation Block+Hook the other blocks showed the right colors Link to comment Share on other sites More sharing options...
Marcher Technologies Posted October 3, 2011 Share Posted October 3, 2011 Hi It seems to be picking up the css for the default template. I have two templates based on the default but just changes of color. The block seems ok colorwise just the links I have changed #category_list ul a:hover { background: #8fb387; border-right: 10px solid #24641a; In ip_content.css But it isn't making any difference Actually this could be a bug with the block as I have another standard navigation block which was also showing the wrong color. When I removed the (MT)IPContent Pages Sidebar Navigation Block+Hook the other blocks showed the right colors... this is.. sticky.. i can release the template sans any css accompanying, but then it would be broken... css-missing, in any random apps twas included in... eg, the board index doesnt have the css for... #category_list at all....(its in ipcontent.css) and the navbar... its css doesnt ship with IPB... its a quite custom css recreation of what you see above here.. Skin->Content Global Templates->hookPageList for sidebar block and Skin->Content Global Templates->hookPageLinks for the navbar. i would restyle it to match the skin, removing it would break its use in board index/other Link to comment Share on other sites More sharing options...
tenaki Posted October 3, 2011 Share Posted October 3, 2011 OK I think I can handle that Link to comment Share on other sites More sharing options...
Marcher Technologies Posted October 3, 2011 Share Posted October 3, 2011 alternatively if willing to copy the "missing bits" into ipb_styles.css from ipcontent.css one could remove the inline. on Skin->Content Global Templates->hookPageList... the innate issue i ran into with this is no skinner skins that besides myself(#category_list).... which is precisely why i felt firing up ipcontent.css as an addtohead was a waste Link to comment Share on other sites More sharing options...
Marcher Technologies Posted October 4, 2011 Share Posted October 4, 2011 this last update is a bugfix for an active bug when furls are disabled. Manual patch if youve custod the template is to find in templates: <if test="$this->registry->ccsFunctions->getPageName()== $p['page_seo_name'] or $this->request['id']==$p['page_id']">active</if> <if test="$this->registry->getCurrentApplication()=='ccs' AND $this->registry->ccsFunctions->getPageName()=='' AND $p['page_seo_name']==$this->settings['ccs_default_page']">active</if> and replace with: <if test="$this->request['id']==$p['page_id']"> active <else /> <if test="$this->registry->ccsFunctions->getPageName() == $p['page_seo_name'] AND !$this->request['id']"> active <else /> <if test="$this->registry->getCurrentApplication()=='ccs' AND $this->registry->ccsFunctions->getPageName()=='' AND $p['page_seo_name']==$this->settings['ccs_default_page'] AND !$this->request['id']"> active </if> </if> </if> thats fun... codebox is stripping ALL template logic on edits... Link to comment Share on other sites More sharing options...
Marcher Technologies Posted October 17, 2011 Share Posted October 17, 2011 bah... i must be a truly kind soul... only affects people with furls disabled, but another further manual fix to above. <if test="$this->request['id']==$p['page_id'] AND $this->request['page']"> active <else /> <if test="$this->registry->ccsFunctions->getPageName() == $p['page_seo_name'] AND !$this->request['id']"> active <else /> <if test="$this->registry->getCurrentApplication()=='ccs' AND $this->registry->ccsFunctions->getPageName()=='' AND $p['page_seo_name']==$this->settings['ccs_default_page'] AND !$this->request['id']"> active </if> </if> </if> should be obvious why the previous code would go bork sometimes. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted October 17, 2011 Share Posted October 17, 2011 the file itself has been patched... just providing for those that have custod it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.