Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Attachment - modify_success.html

Quote Reply
Attachment - modify_success.html
Hello

I cannot use marking

--------------------------

<%if link_has_attachments and viewable_attachments%> <%include include_attachment_list.html%> <%endif%>

------------------------

on the add_success.html pages and modify_success.html

There is no visible list.

I do not have any problem on the detailed.html pages and link.html.

You can help me?

Thank you

Mick

Last edited by:

mick31: Sep 18, 2003, 2:51 PM
Quote Reply
Re: [mick31] Attachment - modify_success.html In reply to
Just use
Code:
<%if link_attachments%>
<%include include_attachment_list.html%>
<%endif%>

BTW: you can always put the tage
Code:
<%GT::Template::dump%>
at the end of a template. This will print out all the template tags that are available, as well as their corresponding values.

I hope this helps.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Attachment - modify_success.html In reply to
Hello Yogi,

I have an error message on the modify_success.html page

/ Unknown%20Tag:%20' att_url'

How to obtain the URL (I want to display the image)?

I do not have any problem on the detail page.

I am in Normal mode

Thank you for your assistance.

Michel

Quote Reply
Re: [mick31] Attachment - modify_success.html In reply to
Try something like:

<a href="<%db_cgi_url%>/jump.cgi?att_id=<%att_id%>;att_unique=<%unique%>">

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Attachment - modify_success.html In reply to
Hello Yogi,

Thank you, the solution is good.

I have two more questions.

1 / I cannot use a condition on the add_success.html pages and modify_success.html

<%if link_has_attachments%>
<%include include_attachment_list.html%>
<%else%>
<img src="/images/tmp.gif">
<%endif%>

There is no problem with (the image is displayed so True.):

<%if link_has_attachments%>
<%include include_attachment_list.html%>

But nothing will be displayed for:

<%else%>
<img src="/images/tmp.gif">
<%endif%>

Where is my error?

There is no problem on the detail page.



2 / How to display the image on the include_attachment_form.html page?

I do not find the solution.

Thank you for your assistance.

Michel
Quote Reply
Re: [mick31] Attachment - modify_success.html In reply to
Hello Yogi,

I do not manage to obtain the correct operation of this on the add_success.html pages and modify_success.html :



<%if link_attachments%>
<a class="links" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank">
<%include include_attachment_list.html%></a>
<%else%>
<a class="links" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><img src="/img/logo.gif" width="120" height="160" class="bouton" border="0" alt="Title..."></a>
<%endif%>


Ok for:
<%if link_attachments%> ...

But not for:
<%else%> ...

Thank you for your assistance.

Mick