Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > Troubleshooting

Troubleshooting Problems, need help? Have a tip or advice? Post it here.

Reply
 
Thread Tools Display Modes
Old 07-29-2012, 12:55 PM   #1
worldobservers
Senior Vivvo User
 
Join Date: May 2012
Location: Australia
Posts: 116
Rep Power: 2
worldobservers is on a distinguished road
Default Article Attachment Icon

is there a way to show particular icon for particular document attached?

for example:
if the attached document is PDF it will show PDF icon, if the document Microsoft word it will show Microsoft word icon and so on.

it is all about identifying the document type for visitors.

Last edited by worldobservers; 07-30-2012 at 02:12 AM.
worldobservers is offline   Reply With Quote
Old 07-30-2012, 07:30 AM   #2
Micha
Administrator
 
Micha's Avatar
 
Join Date: Feb 2006
Location: Belgrade
Posts: 2,662
Rep Power: 10
Micha will become famous soon enough
Default

You can get attachment extension with following VTE code:

Code:
{attachment.get_extension}
You can use that to make a CSS class within attachment_list foreach statement in plugin_multiple_attachments.tpl template.

Next all you need to do is write CSS classes for each mime type, for example:

Code:
mime_jpg {background:img/icon_jpg.png 0 0 no-repeat;}

mime_gif {background:img/icon_gif.png 0 0 no-repeat;}

mime_txt {background:img/icon_txt.png 0 0 no-repeat;}
and so on.
__________________
--[Read Forum Rules and Guidelines before you post!!!]--

Djole, Djole, bas si bezobrazan sto si se pravio da si mali zekan. Zato cu te dobro kazniti...

Last edited by Micha; 07-30-2012 at 07:33 AM.
Micha is offline   Reply With Quote
Old 07-30-2012, 11:37 PM   #3
worldobservers
Senior Vivvo User
 
Join Date: May 2012
Location: Australia
Posts: 116
Rep Power: 2
worldobservers is on a distinguished road
Default

Hi Micha

thanks for the reply.

i have not tested as yet.

i am still waiting to sort out few support tickets before i move to this one.

support a bit slow and working with "Anchors" in vivvo is a real headache.
worldobservers is offline   Reply With Quote
Old 07-31-2012, 09:14 AM   #4
sip
Vivvo Veteran
 
Join Date: Sep 2010
Posts: 601
Rep Power: 3
sip is on a distinguished road
Default

What exactly is the problem with anchors? We did this anchors stuff to replicate what thedailybest.com does on their homepage in "CHEATSHEET" section/block for linking to article position on another page (category template in case of vivvo).
sip is offline   Reply With Quote
Old 08-01-2012, 02:05 AM   #5
worldobservers
Senior Vivvo User
 
Join Date: May 2012
Location: Australia
Posts: 116
Rep Power: 2
worldobservers is on a distinguished road
Default problem with anchors

What exactly is the problem with anchors?
very good question.

first of all the anchors should be working fine as per the image attached.
unfortunately, this method as per the image attached do not work in vivvo.
when clicking on the link that related to an anchor in article page it takes u to home page.
http://www.alankabout.com/literature.../5696.html?p=4


in pages the anchor working fine:
http://www.alankabout.com/calendar_of_events_2011.html


therefore, i have searched in forum then i found this solution:
placing:
<vte:include file="{VIVVO_TEMPLATE_DIR}system/html_header_nobase.tpl" /> in the article template "in my case multipage is my master template for articles"
instead of:
<vte:include file="{VIVVO_TEMPLATE_DIR}system/html_header.tpl" />

the results is the pagination stopped working as well as the image gallery.

than i have searched for solution until i come across this thread:
http://www.vivvo.net/forums/showthread.php?t=1391

in the above tread link one of the moderators wrote this:

Just tested this... You're right, there's a bug in TinyMCE.

What you need to do (a workaround): instead of entering only #Interface in Hyperlink dialog, enter full path from category to the article, in your case: Gaming/Articles/73.html#interface

Not a beautiful solution, but should do the job.


the workaround isn't practical at all and may be good for one anchor every blue moon.

i have contact support for this matter.

i was advised to do the bellow:
Try to create a new template html_header.tpl for article pages only, that will contain the following:

<base href="{CURRENT_URL}" />

instead of:

<base href="{VIVVO_URL}" />

again, this wasn't good as well.

pagination stooped
image gallery disappeared
and other url problems.


i tried to upgrade tinymce but the upgrade did not work for Mozilla.


however, i was using a cms before vivvo and the tinymce was last update 2009 and the anchors worked perfect exactly like the image attached.

it is very clear to me the anchor problems related to vivvo more than tinymce.
Attached Images
File Type: jpg vivvo1hd2.jpg (83.9 KB, 15 views)

Last edited by worldobservers; 08-01-2012 at 03:45 AM.
worldobservers is offline   Reply With Quote
Old 08-01-2012, 07:24 AM   #6
sip
Vivvo Veteran
 
Join Date: Sep 2010
Posts: 601
Rep Power: 3
sip is on a distinguished road
Default

This qualifies as a bug IMHO and the suggested workaround (of placing full path from category) is the only possibility till this is fixed. Changing the base url for article template will break all navigation menu, article breadcrumb and pagination while on article template (or wherever the base is changed).
sip is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 11:45 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.