 |
|
|
Publishing to body, not summary in News Articles
|
|
|
Don, is there a way to get WLW content to publish into the Body field of a News Articles post? Currently all of my entries get published into the Summary field. And for whatever reason, NA isn't displaying all of the summary field even though I have it set to no limit.
|
|
|
|
 |  |
|
|
Re: Publishing to body, not summary in News Articles
|
|
|
Hey Chad,
Hope you're doing well.
The content is published in the summary if there is not a split post. The best way to get the content into the body field is to split the post using the Split Post option from the Insert menu.
Regarding the cutoff, it sounds like you've already checked the token used in your template to make sure it's not cutting off the text. It's been a while since I've played around with the NA tokens, but I seem to recall that there were a few options, some of which truncated the text. From the metaPost side, we're just passing the body and summary off to the NA methods which do the work of saving the article. If digging deeping into the tokens doesn't solve your problem, let me know which version you're using and I'll see if I have a test environment configured for that version.
Thanks,
Don
|
|
|
|
 |  |
|
|
Re: Publishing to body, not summary in News Articles
|
|
|
Don, I've done some follow-up study. I thought you and the community might appreciate this information, in case someone runs in to a setup similar to my own.
I have 2 sites with a bit different setup. Both sites I publish using WLW. Both use the same template code for News Articles, in particular the Listing.Item.Html template page:
<div class="nalisting">
[HASIMAGE]<div class="articleImage">[IMAGETHUMB:100]</div>[/HASIMAGE]
[DETAILS]
</div>
Site 1 Specs: DNN:05.00.01, NA: 00.07.41, ITCMPCE: 01.03.04
Site 2 Specs: DNN: 04.09.04, NA: 00.07.36, ITCMPCE: 01.03.03
Now, in WLW, I don't usually do anything to my posts. That is, I just type in the text, I don't apply any styling, etc. I let the styles from each site do that. However, when posting to site 1, the content of my post does not display on the modules listing "home" page. One site 2, content does show up on the module's "home" page. Again, I'm doing NOTHING in WLW for each blog, save for posting my text.
On site 1, if I DO split the post, which I tested today, the content of the article DOES show on the blog home page, which is the desired behavior I'm looking for.
I just thought you would find that interesting, and maybe helpful. The original reason for my post was that this behavior surprised me, as for months now I've been using metaPost and WLW (on multiple blogs) with Scott's NA module. I had never seen this before, and since the templates are the same, I thought I'd ask.
|
|
|
|
 |  |
|
|
Re: Publishing to body, not summary in News Articles
|
|
|
Excellent Post, Chad.
I appreciate you taking the time to study this and then provide the details regaridng what you tried as well as what did or didn't work. Great posts like this take time to research and document, but they really are helpful to others who may be experiencing a similar issue.
I looked back through the release notes to see if I made any changes to the code which sets the summary and body parts of the article. I didn't find anything.
I"m wondering if there's a difference between 07.41 and 07.36 of NA. Do you know if both of these instances of NA were updates from a version earlier than the 06.07 release of NA? I know Scott changed how the summary is saved in 06.07. That was the last time I recall making any changes to the code which determines where the main body will be saved if there isn't a split post.
Finally, I upgraded to the lastest release of NA on my demo site to test to see if I could reproduce this same behavior. The only thing I was able to see what behaviour which I've seen before where articles which only contained images aren't visible in the default view after upgrading. It seems that the [Details:n] token strips out the images from the content. If you change to [Details], you'll be able to see the images, but you won't have the trunkated text. It's a tradeoff, but one that's necessary since you wouldn't want half of an image tag inserted into the page. I haven't tried it, but [PageText] might work too.
Hope this helps,
Don
Don
|
|
|
|
 |  |
|
|
Re: Publishing to body, not summary in News Articles
|
|
|
Hi,
NA tokens [DETAIL] and [SUMMARY] have counter parts witch allow to strip the amount of characters to display. When I first installed MetaPost I had my NA templates configured to get the first 150 characters from the article body if there was no Summary. Witch is perfectly OK until you use MetaPost Tabs, Footnotes etc. What happens is that NA will pharse some of the jscript code and display it as regular text witch isn't very nice.
After changing the tokens from [DETAIL:xx] to [DETAIL] everything is working fine. The only thing you have to do for the summary is to use the article slitting feature of WLW.
You can still use the auto summary feature in NA but you have to be carefull when writing the article in WLW that you type as many characters as you have specified in the token [DETAILS:xx]. So if ypu have a token [DETAILS:50] your article in WLW must have 50 characters, this will be your summary.
The tricky part is with images. As I see it, NA pharses the core characters of the article without checking for html tags, when you place an image in the article WLW will put an <img> tag into the article (eg. <img src="image.jpg"> will have 21 characters). When you add up the other <img> tag properties alt, width, height etc. you end up with displaying html code instead of the rendered img.
Dubravko Cvikl, Adobe Certified Expert in Design
|
|
|
|
|  |