Форумы / Cotonti / Support / Structure desc to textarea

SunChase
#1 30.07.2009 23:21
I want to make the category's description field to a textarea with textboxer(in admin pannel).
Tell me please how to make it?

I'w changed in the DB its type to 'text',but i dont know how to put the textboxer window in the in the 'Create new' (http://cot4/admin.php?m=page&s=structure)
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
Trustmaster
#2 30.07.2009 23:55
Neither it will parse BBcodes there. You need a plugin for that, or a massive corehack will take place.
May the Source be with you!
SunChase
#3 31.07.2009 00:16
here is the general idea:
I want to make special categories for authors,on which they will put out theyr works.
So this means that i need some logo in every list.First i wanted to make list.tpl's for every category but its will be to much.Than i thought just to put in list.tpl tags like List_caticon and list_catdesc.

can i make this in the next way ? :
  • change db
  • put the textboxer for cat_desc in the admin=>structure (this one i dont know how to do)
  • in list.inc.tpl edit the tag to => "LIST_ROW_DESC" => sed_parse($pag['page_desc']),
  • [url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
    Dayver
    #4 31.07.2009 01:09
    For the similar problem this ticket
    Pavlo Tkachenko aka Dayver
    Trustmaster
    #5 31.07.2009 02:34
    Did you know categories can have icons? {LIST_CATICON} is used for that. Normally icons are set in category options, but you can make a simple plugin so that it would let users change icons for their categories.
    May the Source be with you!
    SunChase
    #6 31.07.2009 02:40
    about icons i know.
    I dont know how to change the desc field to textarea with textboxer...
    [url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
    Trustmaster
    #7 31.07.2009 03:02
    Well, as dayver told, there will be extra fields for lists in 0.7. He has implemented them but the code is pending until 0.6.1 is out.
    May the Source be with you!
    SunChase
    #8 31.07.2009 03:59
    until then...here is a temporary way to do this(if someone needs):


    admin.structure.inc.tpl
    ...
    			<tr>
        	<td>{PHP.L.Description} :</td>
    					<td>
                                            <textarea class="editor" name="rdesc" rows="14" cols="80">{ADMIN_PAGE_STRUCTURE_DESC}</textarea>
                                            </td>
        </tr>
    .....
    <tr>
    					<td>{PHP.L.Description} :</td>
    					<td><textarea class="editor" name="ndesc" rows="14" cols="80"></textarea></td>
    				</tr>
    ...
    

    and for parsing...list.inc.php
    "LIST_CATDESC" => sed_parse($sed_cat[$c]['desc']),
    but it doesnt like AJAX...
    [url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity