Jump to content

IPContent Pages Sidebar Navigation Block+Hook


Nuclear General

Recommended Posts

%7Boption%7D



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:
HOOK
BLOCK
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

  • 2 weeks later...
  • 2 weeks later...

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


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

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

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

  • 2 weeks later...

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...