| Author |
Graphical Navigation based on channels
|
|
|
| I am looking for some advice here. I wanted to display a navigation bar
based on channel names. I wanted to just display the channel name as a
hyperlink with its URL pointing to currentchannel.URL. However, my clients
wants a different solution. They want graphics which link to the channels
instead of textual hyperlinks. My question: how should I go about this? I
know I can import the images into the resource gallery, but then how do I
assign those graphics to a specific channel? I'd like to store the images in
the resource gallery. I appreciate any feedback.
Adam
| |
| Stefan [MSFT] 2005-08-23, 5:53 pm |
| Hi Adam,
there are different approachs:
1) name the image with the GUID of the channel. The navigation control then
has to check the GUID of the channel and use the image with the same name
2) name the image with the name of the channel. This works similar to the
approach outlined above but will only work if all channels have different
names or can have the same image if they have the same name
3) use a custom channel property that holds the name of the image to use.
I would suggest to use only one single dedicated resource gallery for this
approach as it simplifies the search for the image.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Adam" <Adam@discussions.microsoft.com> wrote in message
news:CC02DD08-7470-44AE-8327-4C871B27C11B@microsoft.com...
>I am looking for some advice here. I wanted to display a navigation bar
> based on channel names. I wanted to just display the channel name as a
> hyperlink with its URL pointing to currentchannel.URL. However, my
> clients
> wants a different solution. They want graphics which link to the channels
> instead of textual hyperlinks. My question: how should I go about this?
> I
> know I can import the images into the resource gallery, but then how do I
> assign those graphics to a specific channel? I'd like to store the images
> in
> the resource gallery. I appreciate any feedback.
>
>
> Adam
>
| |
|
| For simplicity sake, I'd probably use some naming convention for images
that mirrors the channel name with variations if you need roll overs
like: channel_image.gif and channel_image_rollover.gif. This is the
least complicated and easiest to work with long term.
Shawn
| |
|
| Thanks for input Shawn and Stefan. I am going to use the Channels' names for
the images' names. Sounds like a good solution. (Now if I can just figure
out why I am having trouble iterating through my resource collections.)
Adam
"Shawn" wrote:
> For simplicity sake, I'd probably use some naming convention for images
> that mirrors the channel name with variations if you need roll overs
> like: channel_image.gif and channel_image_rollover.gif. This is the
> least complicated and easiest to work with long term.
>
> Shawn
>
>
|
|
|
|