plainblack.com
Username Password
search
Bookmark and Share

    

Collaboration System using two content fields

User fayehopper
Date 3/19/2010 5:28 pm
Views 674
Rating -1    Rate [
|
]
Previous · Next
User Message
fayehopper

I'm looking to build a collaboration system (blog) that will pull just the 1st paragraph (with links and photos) from the content field and then will show the full posting after you click "read more" and view the thread.
I can't use <tmpl_var synopsis> because it doesn't pull the photo's or the links.
I can't use <tmpl_var form.textarea> because it's only a text area - no rich text editor.

I think what I need is two <tmpl_var content> fields so that I can use one to post the preview that shows first (with photos and links) and one to post the full article -- but I have yet to figure out how to get the post form to use two <tmpl_var content> fields. 

Does anyone know if this is possible or if there is another solution for my problem?

 

--- (Edited on 3/19/2010 5:28 pm [GMT-0500] by fayehopper) ---

--- (Edited on 3/19/2010 5:31 pm [GMT-0500] by fayehopper) ---



Back to Top
Rate [
|
]
 
 
susanb
Try tmpl_var form.textHtml (not sure of the capitalization)
--Susan


On Mar 19, 2010, at 3:31 PM,   wrote:

> fayehopper wrote:
>
> I'm looking to build a collaboration system (blog) that will pull  
> just the 1st paragraph (with links and photos) from the content  
> field and then will show the full posting after you click "read  
> more" and view the thread.
> I can't use  because it doesn't pull the photo's  
> or the links.
> I can't use  because it's only a text area -  
> no rich text editor.
>
> I think what I need is two  fields so that I can  
> use one to post the preview that shows first (with photos and links)  
> and one to post the full article -- but I have yet to figure out how  
> to get the post form to use two  fields.
>
> Does anyone know if this is possible or if there is another solution  
> for my problem?
>
>
> --- (Edited on 3/19/2010 5:28 pm [GMT-0500] by fayehopper) ---
>
> --- (Edited on 3/19/2010 5:31 pm [GMT-0500] by fayehopper) ---
>
>
>
> http://www.webgui.org/forums/design/collaboration-system-using-two-content-fields2
>
>
> --
>
> WebGUI
> http://www.webgui.org

--- (Edited on 3/19/2010 5:45 pm [GMT-0500] by susanb) ---



Back to Top
Rate [
|
]
 
 
rogier

I think what I need is two <tmpl_var content> fields so that I can use one to post the preview that shows first (with photos and links) and one to post the full article -- but I have yet to figure out how to get the post form to use two <tmpl_var content> fields. 

Does anyone know if this is possible or if there is another solution for my problem?

Yes, you can use a user defined field for this. There are 5 user defined fields in the Collaboration System. They allow you to add extra content to a post; they are used to add the links in the "Link list" template, for example.

You can use them to add another rich editor field to the post form, like this:

<tmpl_var userDefined1.form.htmlarea>

Then, in the Collaboration template, you can use <tmpl_var userDefined1> instead of the synopsis. This is, like you said, essentially another content field.

You can use the userDefined1 field for the first paragraph preview; and in the Thread template you can use the regular <tmpl_var content> for the full content (or vice versa).

More about user defined vars in the help: http://www.webgui.org/?op=viewHelp;hid=post%20add%2Fedit%20template;namespace=Asset_Post

Good luck,

 

Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl

 

--- (Edited on 22-03-2010 18:32 [GMT+0100] by rogier) ---



Back to Top
Rate [
|
]
 
 
fayehopper

That worked perfectly.

Thanks!

Faye Hopper

--- (Edited on 3/22/2010 3:25 pm [GMT-0500] by fayehopper) ---



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved