PDA

View Full Version : HOWTO: Add news and promo


Ruben
09-23-2004, 09:01 PM
ok, i got several times questions about the news and promo functions for both v4.8 and v4.9> templates.

-------------------------------------------------
For Templates build to use 4.8:
-------------------------------------------------

As novice user how do you modify the news and the promo content?
pretty simple really, Click on 'Blog Manager' in sohoadmin.

To test the boxes, just create a couple of Blog Entries under the subjects "Latest News" and/or "Special Promotions".

If your test site doesn't already have the Latest News and Special Promotions categories in your blog_category table as categories number 1 and 2, you'll have to dump your blog_category and blog_content tables first.

Here is a screenshot, to show you how i have set it up on our test system.

check the screenshot at http://www.sohotemplates.com/tutor/newsandpromo.gif

remember to put NEWS 1st in the blog manager and after that the PROMO, then this will automatically show these in the right order.

after you have fixed this:
Give for example your news a Titel and you type or paste your text into the text field.
Than (from the dropdown box in the bottom) you choose in what category you would like to post this message. you allready have NEWS on place 1 and Promo on place 2.

If you choose news, your message will appear under NEWS and when choosing Promo, it will appear in one of the promo boxes.

Your template has only 1 promo box, so you don't have to worry about the following.

When you have multiple promo fields in a template, specified like #PROMOTXT1# and #PROMOTXT2# the promo text you put in there will rotate between the 2 promo fields (when you have 5 promo articles for example), so it looks very dynamic. (PROMOTXT pulls at random)

-------------------------------------------------
For Templates build to use 4.9 and Higher:
-------------------------------------------------
In Templates created for version 4.9 and higher, the templates use the #BOX1# tag ( the 1 stands for box #1 this could be 2,3,4 etc. as well)
you can see where these boxes are by opening the template or by simple clicking on the "View raw template skeleton so you can see where each box is placed" link which you find in the "Main Menu"/"Template Manager"/"Edit Template boxes Now" section.

1. inside each box, you can insert any kind of info you want.
2. You can create any amount of categories in the blog manager upfront and insert text into each of them.
These categories have nothing to do at this moment with where this text is going to show. that is something im going to explain now.

3. After you have created the categories you want, for example you have created the following categories:
- Offer
- Image
- Information
and in each category you have posted a piece of information/image/etc.

Now you are going to the "Main Menu" and click on "Template Manager".
Here you will see a screenshot of your template.
Click on the right side on "Edit Template Boxes Now", This is the section where YOU are going to decide WHAT category should show up in WHICH box. :-)

4. You will see 2 Tabs, one called "Site Base Template" and one called "Home Page"
There you can select from the dropdown boxes which category should be presented in 'which' box.
Click the "Edit Display settings" and play around with the settings to show in each box exactly the info and format that is needed for that box.

radicalone3
09-24-2004, 12:55 AM
Just a bit of info to new users - you can 'tweak' the code to show more than 5 news stories.... if you like. Modify the limit in sohoadmin/client_files/base_files/pgm-promo_boxes.php @ line 66. Just be sure to re-log into the admin section to re-write the active file. (of course this was accurate with my RC version - may change with the production version). :cool:

ricardosanX
03-14-2005, 08:09 PM
The Promo and News items appears to strip out a href links when they are displayed in the template.

Is this a bug, or deliberate?

I'd like to be able to put "read more" links at the end of promos, so that users can click thru to a full article, or product (ie any designated page on the site - not the blog itself)

Regards

Richard

Ruben
03-14-2005, 08:16 PM
I agree with you Richard, that it would be nice if the user could specify if he would like to show this 'read more...' text as part of the short story, but this is just not possible at this moment, but am sure that 'when' a new blogmanager/ newsmanager arrives, this would be a great and allmost needed feature.
Ruben

ricardosanX
03-15-2005, 05:39 PM
Thanks Reuben,

We seem to be in agreement on a lot of this stuff :)

I suspect this is an easy fix, as when you add a link in the blog editor it prints with just one error - it inserts SOHOLINK instead of HREF
<A SOHOLINK="http://celtictravel.com.au/index.php?pr=Corporate">new offers etc </A>
Richard

Ruben
03-15-2005, 07:31 PM
I know about that one yes,

you can create a find/replace function is the databasemanager and
replace SOHOLINK with HREF

Ruben