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.

Blog Module /

Discuss the Blog Module.

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

Where in Blog is sidebar widget markup procedurally applied?


Reply


2 Posts   793 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, 5513 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