Hi. I was wondering how to add an image to the short description.
Let us say, I have 3 images with position 0, 1, and 2. I would like image with position 0 to appear on the short description and image position 1 and 2 to appear in the full description page.
Any ideas how to achieve the following.
Thanks.
» Quick.Cms v2.x
compnet
2008-01-31 16:05
I realized that this is not the smartest way to handle the above. I think that adding a new upload field (same functionality as the banner upload) would be the best way to do it. Any help would be greatly appreciated.
compnet - If You want images in short description: 1. Install FCK editor - i think it will helps You: http://opensolution.org/Quick.Cms/docs_v1.x/?id=tips#how_to_upload_editor_fckeditor
2. Create different template in templates/ using templates/pages_default.tpl and put description and images manually there. It will helps You to understand: http://opensolution.org/Quick.Cms/docs/?id=tips#templates_-_changing_middle_part_of_the_site_on_particular_s ubpage
compnet
2008-02-01 10:49
Hi Treewood. As always thanks for your help.
I am not sure I understand what the implications are when enabling FCK editor and I dont want to lose the functionality of the editor, image and file manager. I like the way the way the editor, the image and file manager work, I simply would like to have the possibility to add ONE image to the short description and that's it and more images in the full description.
Anyhow, I have tried installing FCK editor, but that failed miserably. No error message, it simply seems that it cannot retrieve the data from the db, thus, it wont let me edit existing content. Are the instructions compatible with Quick CMS Lite v2.x ?
1) create a dir in your templates dir called xtraimg
2) in the short description add this BEFORE any text: <img src=".templates/xtraimg/yourimage.gif/png/jpg" width="75" height="38" align="right" border="0">
3) make sure the dimensions are correct - you can see the src is pointed to the dir in the templates dir, and to the image in question. You will also notice that its to the "right" of the container - align it left or center as you wish - border if you want
Sorry rdc_p2 I am right the index page is calling to the templates dir (inside the main dir) to the pages_default.tpl - so whatever info is going to be displayed remotely via a call is going to know its inside the templates dir (from the index) hence the ./ - why dont you test it???
Hi idaryl. That would work indeed, but the image upload would have to be done via ftp and html code would have to be inserted each time. I would rather have this be done via the control panel.
compnet
2008-02-04 19:05
Treewood. My bad. FCK editor does work, but only in IE and it does give me the possibility to add images to the short description.
This might be the wrong place to post this, but any ideas how to make FCK editor work in both IE and FF.
Thanks.
samesame
2008-04-15 17:06
High compnet,
assuming we are talking about the same thing here: in the demo version of quick.cms lite v2.0 I noticed that under "our offer" you do have pics with in the shrot description of "our offer 1" and "our offer 3".
I could not reproduce it myself with the default installation so I searched this forum. which of the 2 ways you described above did you use: the fck editor or did you create templates?
samesame - log in to admin/pages/our offer and find four tabs to the right. Options, View, Files, SEO. Click "View" and change "Subpages" to "List (name, description, photo)" Then you can view subpages with photo and short description if you add a photo to the subpage you want to be displayed.
I was looking recently how to solve this problem. I created new menu called "great offer" and added some pictures to it. Then, on the main page I added this menu, changed in its template to:
<!-- BEGIN LIST --> <li class="l$aData[sStyle]"> <h4>$aData[sDescriptionShort]</h4> <a href="$aData[sLinkName]" $aData[sSelected] id="#nav">more...</a></li><!-- END LIST -->
so that on main page it shows "short descrption" and by clicking "more" it shows full description page with thumbnails.
But I cannot show any pictures that appear in full description.
Is there any way to achieve this, without having to upload image to some directory using ftp ?