This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 23 Nov 25, 00:19 Last Post By: jret Threads: [ Previous | Next ]
jret

Posts: 112
Registered: 5-Mar-2009
Neptune: Nav Icon No Display
Posted: 20 Nov 25, 02:43
 
  Click to reply to this thread Reply
Is it possible to prevent the up one level arrow from displaying on the level immediately below the home page? In one of my sites I'm using the Album Home icon and the up arrow icon is not needed until going deeper in the folder hierarchy. And, if possible, can it be done with CSS?
JeffTucker

Posts: 8,337
Registered: 31-Jan-2006
Re: Neptune: Nav Icon No Display
Posted: 20 Nov 25, 17:28   in response to: jret in response to: jret
 
  Click to reply to this thread Reply
I'm semi-homeless at the moment - having new flooring put in my condo, so the place is a mess. My PC is a prisoner in the kitchen, behind a sofa that completely blocks access! I'm posting from my (parked) car, using my phone as a hotspot.

I need to do a little tinkering to see if there's a clever way to do this. The catch is that there is only one CSS file for an album. So if the up-arrow is hidden on one page, it's hidden everywhere. And there's nothing internal that indicates whether a given page is a "level 0" (the top of the album), a "level 1," a "level 2," and so on. The page coding is all the same. I'd prefer to avoid hacking the skin templates....

Some experiments are called for.
JeffTucker

Posts: 8,337
Registered: 31-Jan-2006
Re: Neptune: Nav Icon No Display
Posted: 20 Nov 25, 23:43   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I don't think there's any way to do this other than by modifying one of the skin's template files. And if you install a skin update, you'll have to make the change again, since I don't intend to include this in a future release.

Open the skin directory and open includes/titlebar.inc in a text editor. Head for line 30, which begins:
if(level > 0) tbString += ....
Change the if test:
if((level > 0 && !albumHome) || (level > 1 && albumHome)) tbString += ....


Edited by: JeffTucker on 21 Nov 2025, 02:36 - more robust code
jret

Posts: 112
Registered: 5-Mar-2009
Re: Neptune: Nav Icon No Display
Posted: 23 Nov 25, 00:19   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks for experimenting & tinkering with my question. I've played with it a little bit and, in doing so, re-evaluated the structure of each of my sites with the conclusion that changing would have little or no effect on making my sites any more user-friendly.

I have 3 sites
the simplest one has only 7 folders and is built from one project file. Best to use the KISS method here.
the other two sites have 6 folders each with a project file for the top level + 6 project files for the 6 folders (albums). Only a couple of folders could "possibly" benefit from the change in nav icons - so essentially unnecessary to make any alterations.

If the change I was suggesting could be accomplished with a simple CSS command - wonderful. But I was concerned that it could not be solved in this manner which you confirmed. Best to leave it as is and to use the wonderful tools you've already provided.

Thanks again - hope your project is completed and that you once again have access to your computer.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums