Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Grabbing Logos from Assets Folders and displaying as Navigation


Go to End


5 Posts   1379 Views

Avatar
S0crates9

27 Posts

14 November 2008 at 3:32pm

Edited: 14/11/2008 4:18pm

I've not tackled this one and am unsure of how to start, but I am looking to grab logos from the assets folder in the CMS and display the navigation using the logos/links.

Anyone have any ideas on how to implement this?

Here is an example of a silverstripe site that a member here has (Lemon8):
http://www.fahrenheitstore.nl/

I love the way the brand logos act as the nav, and would like to do something similar...

Avatar
Liam

Community Member, 470 Posts

14 November 2008 at 5:25pm

I would just add an image field to each page, then it becomes an object of that page so in your menu tag you can access it via a variable.

I believe the 'extending' tutorial has a part on adding images to a staff's page. You can use the same type of concept. It would be pretty easy.

Avatar
S0crates9

27 Posts

16 November 2008 at 2:29pm

Hi LeeUmm!

When you say add an image field, do you mean using TinyMCE or are you meaning in the template code?

Just curious if there is a smart way to do that without having to do alot of manual entry...

Avatar
Fuzz10

Community Member, 791 Posts

16 November 2008 at 11:00pm

Avatar
S0crates9

27 Posts

17 November 2008 at 12:49pm

Thanks Fuzz10 and LeeUmm for pointing me to some great info!

I'll take a look at the tutorial and see if I can figure this out.