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.

Blog Module /

Discuss the Blog Module.

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

Where in Blog is sidebar widget markup procedurally applied?


Go to End


2 Posts   1350 Views

Avatar
Parradoxx

Community Member, 5 Posts

3 March 2011 at 12:50pm

Greetings,

Installed blog module, and functionality is fine. However, I would like to change the structural markup of the Blog Management widget. I think I've been able to track down the UL which forms the menu (although, at the moment, I'm not sure I can find it again) however I'm baffled as to where the H3 tag is applied for the title.

I do not necessarily want to change the H3, but having gone looking for it, I now must have the answer or I'll go bonkers with wonder.

I also do not see where the style tags are programmatically added to the DIV wrapper.

Please point me in the right direction. Thank you!

Bret

Avatar
Willr

Forum Moderator, 5523 Posts

3 March 2011 at 9:20pm

Widgets are rendered individually into their own template eg https://github.com/silverstripe/silverstripe-blog/blob/master/templates/BlogManagementWidget.ss (or Widget.ss by default).

The entire widget panel is templated by a WidgetHolder.ss template which contains the titles and the overall bar

https://github.com/silverstripe/sapphire/blob/master/templates/WidgetHolder.ss