stephpy / timeline-bundle

Symfony2 bundle to make timeline
192 stars 57 forks source link

More information about theming #153

Closed Booklab closed 10 years ago

Booklab commented 10 years ago

Specify at the beginning that it is needed to specify components file in config. It's difficult to understand how it works otherwise in my opinion ( I spend 1 day on it...).

cordoval commented 10 years ago

:+1: @stephpy make me an admin so i can also merge plz :blush:

stephpy commented 10 years ago

You have not to set components file to use theming. You can define Model-Specific Custom blocks and This part without adding your component file.

cordoval commented 10 years ago

oh :blush:

stephpy commented 10 years ago

What you say is already said here

Booklab commented 10 years ago

yes I know, at the very end of the page. I think that peoples need to see that the configuration is required. Otherwise, you have an object to string conversion error.

Booklab commented 10 years ago

the model specific block don't work for me, maybe I miss something.

stephpy commented 10 years ago

I understand, but configuration is not required. You could add theming things on any twig template.

Usage of __toString is explained here:

Rendering the subject component will generate html using the __toString() method of the subject model.

{{ timeline_component_render(timeline, 'subject') }}

the model specific block don't work for me, maybe I miss something.

I already used it and it worked. Could you create an issue and explain your issue ?

Booklab commented 10 years ago

Ok, I'll create an issue and try to explain.