EllisLab text mark
Advanced Search
3 of 3
3
   
Plugin: Single Field
Posted: 13 May 2010 06:13 AM   [ Ignore ]   [ # 37 ]   [ Rating: 0 ]
Joined: 2006-11-02
228 posts

Laisvunas, what a great plug-in. I’m doing something similar with it to Erik_Reagan and it’s almost working like a dream… but not quite! Here’s what I have so far:

{exp:child_categories parent="62" child_categories_sort_direction="asc" entries_sort_by="date" entries_sort_direction="asc" parse="inward"}
  {child_category_start}
    
<h2 id="{child_category_url_title}">{if child_category_description}<abbr title="{child_category_description}">{child_category_name}</abbr>{if:else}{child_category_name}{/if}</h2>
  
{child_category_end}

  {entries_start}
    
<class="preamble"><strong>{if title_html}{title_html}{if:else}{title}{/if}</strong></p>
    
{exp:single_field  field="body" weblog="faq" entry_id="{entry_id}" field_format="wysiwyg"}
  {entries_end}
{
/exp:child_categories} 

The only problem is that the {body} field in question uses LG TinyMCE and so is a field type of WYSIWYG, and my attempt to use WYSIWYG as a field_format doesn’t work.

 
Posted: 13 May 2010 06:26 AM   [ Ignore ]   [ # 38 ]   [ Rating: 0 ]
Joined: 2006-11-02
228 posts

Duh. Using a field_format of “raw” was all I needed to do…

{exp:single_field  field="body" weblog="faq" entry_id="{entry_id}" field_format="raw"

Sorted! :-$

 
Posted: 12 July 2010 02:07 PM   [ Ignore ]   [ # 39 ]   [ Rating: 0 ]
Avatar
Joined: 2007-12-13
236 posts

I think a great addition to this plugin would be to have option of grabbing the field_format from the field itself and the params (html_format,auto_links, etc.)from the weblog itself.

 Signature 

Fusionary | Geniuscar

 
3 of 3
3