Register   Login
     
  Latest Posts  
News Article css
by daviking on 12/01/2008 7:04 PM
RE: File Expiration Date
by jcochran on 12/01/2008 6:35 PM
RE: Set default value
by mariusm on 12/01/2008 6:29 PM
New Module - File Search
by jcochran on 12/01/2008 6:21 PM
RE: Display Name
by blob150 on 12/01/2008 3:07 PM
How to replicate the paging control at the top of the photos grid
by markjjordan on 12/01/2008 3:05 PM
RE: Ratings button appears to anonymous users
by smcculloch on 12/01/2008 2:40 PM
RE: Search Results Showing Article Title Twice...
by smcculloch on 12/01/2008 2:31 PM
RE: Personal Albums
by smcculloch on 12/01/2008 2:31 PM
RE: New Installation Guide??
by smcculloch on 12/01/2008 2:30 PM
  Forums  
Subject: Feature request: Custom fields/tokens
Prev Next
You are not authorized to post a reply.

Author Messages
Paper, SundayUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:4

6/26/2008 11:24 AM  

Hi, Scott! We use NewsArticles for our weekly newspaper website, and it works like a charm. There's one thing I've always wondered about... what would it take to add custom fields — or even just one or two *more* fields — with corresponding tokens? I ask because we style our photo credits and photo captions the same for each article, and our text editor doesn't do great with styling spans consistently, so it would be such a huge help to us if we could get one or two more content fields on the editor. Is there any chance that might be possible one day?

Thanks, and keep up the great work!

Steve J.User is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:95

6/26/2008 12:06 PM  

I'm trying to figure out the photo credit/caption's as well...what I was thinking is if you had the extra fields you're talking about, and could template a "token" for inserting everything.

For example (I left out some <>'s so it would display!)
Template:
table
tr
td [PHOTODISPLAY] /td
/tr
tr
td [CAPTION] /td
/tr
tr
td [CREDIT] /td
/tr
/table

And then some sort of [PHOTOINSERT] tag that could be placed in the article where you wanted it...

If you don't mind, how are you handing it now?

Thanks,
Steve
Edited - the first try didn't work...

 

 

Paper, SundayUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:4

6/26/2008 12:13 PM  

I have styles, one for captions and one for credits, both of which have a left float and a fixed width the same size as I've set the photo to display. The template displays [IMAGE][BODY], and since the photo also floats left, the first thing I put in the body of the article itself is the caption and the credit, which I then style with a span to call their classes (which requires source-editing on each article, something I'd very much like to do away with so that non-designers can update the site). Unfortunately, the FCKeditor adds paragraph tags to everything, which have to be removed in order for the pages to display correctly — and it adds them in EVERY TIME the article is edited, which has proven itself a huge problem, since non-designers often have to edit each article for editorial purposes, and don't know to take the P tags out.

It  mostly gets the job done, but because of that problem, it isn't a permanent solution.

Steve J.User is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:95

6/26/2008 12:16 PM  

Okay, thanks!
Steve

jon wintersUser is Offline
Gold Membership
Nuke Active Member
Nuke Active Member
Posts:35

6/26/2008 9:00 PM  
SP,

You can edit the FCK Editor files to not have this happen... I think - you might want to test. Anyway, open this file:

..\Providers\HtmlEditorProviders\Fck\Custom\fckconfig.js

edit this line:

FCKConfig.EnterMode = 'br' ; // p | div | br

Change to br from p

You may want to change the fckconfigsecure.js also.

Jon
Paper, SundayUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:4

6/30/2008 8:16 AM  

Thanks, Jon! It was worth a try, although I didn't see a change — but knowing now that it might be possible, I'm going to look into what exactly I'll have to do. If I figure it out, I'll come back to report.

Sölve DahlgrenUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:82

8/28/2008 1:16 AM  
Posted By Steve on 6/26/2008 12:06 PM

I'm trying to figure out the photo credit/caption's as well...what I was thinking is if you had the extra fields you're talking about, and could template a "token" for inserting everything.

For example (I left out some <>'s so it would display!)
Template:
table
tr
td [PHOTODISPLAY] /td
/tr
tr
td [CAPTION] /td
/tr
tr
td [CREDIT] /td
/tr
/table

And then some sort of [PHOTOINSERT] tag that could be placed in the article where you wanted it...

If you don't mind, how are you handing it now?

Thanks,
Steve
Edited - the first try didn't work...

 

BUMP, this functionality would be greatly appreciated. Just looking at a site where we need captions and credits for all pictures. Not easy to get that in without a special field for captions... Or, make that impossible if you don't want to insert the pictures into the article detailfield itself along with the text. But then you can't use the pic in Latest Articles-listings...


Sölve Dahlgren
www.dahlgren.net
www.dnn-tips.se
You are not authorized to post a reply.
Forums > Modules > News Articles > Feature request: Custom fields/tokens



ActiveForums 3.7