2010-02-08, 09:35:16
Hi,
Just realized I'd left some debug code in the original so the getCustomfield function returned nothing.. 8)
New version 1.1 is available here
http://www.digimute.com/index.php?type=b...e-2-plugin
The difference between the 2 functions is ;
getCustomField should echo the value to screen.
returnCustomField returns it to a variable.
As for the dropdown problem, the XML code rendering on my site is screwing up with the <option> tags so the full example should be
All your customfields should be added to the one file between the <channel> tags.
Naming: each of the new fields has an id/name "post-" + fieldname so you can style.
No restrictions on the text size. Something I can add for the next version.
Hope this helps...
MIke.
Just realized I'd left some debug code in the original so the getCustomfield function returned nothing.. 8)
New version 1.1 is available here
http://www.digimute.com/index.php?type=b...e-2-plugin
The difference between the 2 functions is ;
getCustomField should echo the value to screen.
returnCustomField returns it to a variable.
As for the dropdown problem, the XML code rendering on my site is screwing up with the <option> tags so the full example should be
Code:
<?xml version=\'1.0\' encoding=\'utf-8\'?>
<channel>
<item>
<desc>pagetype</desc>
<label>Page Type (Blog/Gallery) </label>
<type>dropdown</type>
<option></option>
<option>blog</option>
<option>gallery</option>
</item>
<item>
<desc>publishdate</desc>
<label>Published Date</label>
<type>text</type>
</item>
</channel>
All your customfields should be added to the one file between the <channel> tags.
Naming: each of the new fields has an id/name "post-" + fieldname so you can style.
No restrictions on the text size. Something I can add for the next version.
Hope this helps...
MIke.