victorjonsson / Arlima

Article List Manager - Wordpress plugin suitable for online newspapers that's in need of a fully customizable front page
28 stars 16 forks source link

New Streamer - Pre #78

Closed ErikXXon closed 9 years ago

ErikXXon commented 9 years ago

How do you use the "new" streamer_pre?

Templates, Filters?

victorjonsson commented 9 years ago

After that you have enabled the streamer pre-text (wp-admin -> Manage Lists -> Settings) you will get two text inputs when you activate the streamer on an article. You access the pre-text using the variable {{options.streamerPre}}. The code in your article template might look something like:

{{#options.streamerPre}}
   <div class="streamer divided">
       <div class="alignleft">{{{options.streamerPre}}}</div>
       <div class="alignright">{{{options.streamerContent}}}</div>
   </div>
{{/options.streamerPre}}
{{^options.streamerPre}}
   {{#html_streamer}}
      <div class="streamer"> {{{html_streamer}}} </div>
   {{/html_streamer}}
{{/options.streamerPre}}
ErikXXon commented 9 years ago

Thanks Victor! :)

ErikXXon commented 9 years ago

When fill in the extra pre field, my custom streamer dont work.

streamer-pre

When i don fill anything into the pre-field everything works.

streamer-wo-pre

victorjonsson commented 9 years ago

The wrapper needs automatic overflow

.streamer.divided {
   overflow: auto;
}