[campsite-support] Image link
  • Hi!

    I think I'm getting mixed with something on image links and I should know the correct way that I can then try to empty cache etc to see what is happening.

    I changed home page template for the system and the article images disappeared.
    Then I replaced from the backup the old one but couldnt get the images visible back. Emptied also the system cache from the admin.

    The crucial line is this as far as I think:





    Also tried (without brackets in the image name):



    /Sanna
  • 15 Comments sorted by
  • It seems working with this one, without brackets:

    On 27.1.2010, at 9.54, Gene wrote:

    > Also tried (without brackets in the image name):
    >
    >



    and I guess the real issue then was the fact that after putting first the wrong one, it was cached and didn't get easily off...
  • Hi,

    we noticed that our navigation template works elsewhere (as far as we know for now) but not on the advanced search page, here is the crucial part of the code for the navigation:



    Home


    Search

    {{ local }}
    {{ set_language name="English" }}
    {{ set_issue number="2" }}
    {{ set_section number="1" }}
    {{ set_article name="About Us" }}
    About Us

    {{ set_section number="5" }}
    {{ set_article name="Contact Us" }}
    Contact Us



    {{ unset_issue }}
    {{ unset_language }}
    {{ /local }}


    - - - - -

    Advanced search template does have the exact same menu.tpl linked than the other pages.

    /Sanna @ Gene
  • Please send me all your templates (archive the whole templates directory).

    Mugur

    On Wed, Jan 27, 2010 at 11:07 AM, Generare Management Department <
    management@generare.com> wrote:

    > Hi,
    >
    > we noticed that our navigation template works elsewhere (as far as we know
    > for now) but not on the advanced search page, here is the crucial part of
    > the code for the navigation:
    >
    >
    >
    > Home


    > Search

    > {{ local }}
    > {{ set_language name="English" }}
    > {{ set_issue number="2" }}
    > {{ set_section number="1" }}
    > {{ set_article name="About Us" }}
    > About
    > Us


    > {{ set_section number="5" }}
    > {{ set_article name="Contact Us" }}
    > Contact Us

    >

    > {{ unset_issue }}
    > {{ unset_language }}
    > {{ /local }}
    >
    >
    > - - - - -
    >
    > Advanced search template does have the exact same menu.tpl linked than the
    > other pages.
    >
    > /Sanna @ Gene
  • We are listing search results like this:

    - - - -
    {{ list_search_results order="bypublishdate desc" length="10" }}
    {{ if $campsite->current_list->at_beginning }}

    Found {{ $campsite->current_list->count }} articles matching the keyword(s)
    '{{ $campsite->search_articles_action->search_phrase }}'
    {{ if $campsite->search_articles_action->search_section > 0 }}
    from section {{ $campsite->article->section->name }}
    {{ /if }}
    {{ if $campsite->search_articles_action->topic_id > 0 }}
    {{ local }}
    {{ set_topic identifier=`$campsite->search_articles_action->topic_id` }}
    having the topic {{ $campsite->topic->name }}
    {{ /local }}
    {{ /if }}


    {{ /if }}
    - - - -

    Can I sort the same results as well by the language because now different languages go mixed?
    The results need to be by the publish date as well like they are now.
    If not possible, maybe a flag could be used to identify what language each article is using.

    Also we were thinking to add a small image and the publishing date as we have actually in the article page but I think these shouldn't be any problem inside the listing results.

    Sanna @ Gene
  • Hi, I m looking for a company or website were I can buy and andvanced template, some suggestions?
    Thx
    Antoni Muntaner
    Chairman
    Email:amuntaner@binbit.com
    Tel. (+52818) 335 0115
    Tel. (+521) 8115595577

    Enviado desde mi oficina m
  • Hi,

    can we add an image to the article text (with the editor button) if we have not added the image into the collection already?

    So, this is when editing articles and we want a photo "A" to be inside the text and we use it via editor tool from the image collection of the article, then it comes two times to the article, listed in the end of the article as attached images and inside the article. Also the thumbnail in front page is based on this attached image.

    So now we have the same image 2 times per article:
    - the one applied via text editor tool
    - the one that comes as attached images (in order to get it selectable for the text editor tool)

    Of course we could take off the image attachments from the template and it wouldn't be twice but we do need in some articles also the image attachments for additional photos atleast.

    I hope my explanation can be understood!

    Sanna @ Gene
  • Hi!

    Trying to crawl through the manual here since I think this should be there...

    SEARCH FORM has this line

    {{ camp_select object="search" attribute="mode" html_code="id=\"match_all\"" }}

    it appears to a box to be selected.
    How can we make this box to be selected as default?

    Kristiina @ Gene
  • You can't; the code displaying this checkbox is in the file
    smarty_camp_plugins/function.camp_select.php at lines 156-158. You can
    modify it to implement a parameter specifying the default option
    (checked/unchecked). If you do that please send us the patch to integrate it
    in the source tree Smile

    Mugur

    On Fri, Jan 29, 2010 at 2:57 PM, Generare Management Department <
    management@generare.com> wrote:

    > Hi!
    >
    > Trying to crawl through the manual here since I think this should be
    > there...
    >
    > SEARCH FORM has this line
    >
    > {{ camp_select object="search" attribute="mode"
    > html_code="id=\"match_all\"" }}
    >
    > it appears to a box to be selected.
    > How can we make this box to be selected as default?
    >
    > Kristiina @ Gene
    >
    >
  • Hi,

    What you can do is:

    - Attach all the images you need for the article as usual.
    - Give a special number (index) to the image you are gonna insert
    inside text. Let's say number 200. This should become like a policy
    for all articles where you need to do this.
    - Then, in template you write the article images list (the one
    displaying all images at the bottom of the page) like this:

    {{ list_article_images }}
    {{ if $campsite->image->article_index != 200 }}
    put your code here to show images
    {{ /if }}
    {{ /list_article_images }}


    Hope this helps!

    On Fri, Jan 29, 2010 at 7:09 AM, Generare Management Department
    wrote:
    > Hi,
    >
    > can we add an image to the article text (with the editor button) if we have not added the image into the collection already?
    >
    > So, this is when editing articles and we want a photo "A" to be inside the text and we use it via editor tool from the image collection of the article, then it comes two times to the article, listed in the end of the article as attached images and inside the article. Also the thumbnail in front page is based on this attached image.
    >
    > So now we have the same image 2 times per article:
    > - the one applied via text editor tool
    > - the one that comes as attached images (in order to get it selectable for the text editor tool)
    >
    > Of course we could take off the image attachments from the template and it wouldn't be twice but we do need in some articles also the image attachments for additional photos atleast.
    >
    > I hope my explanation can be understood!
    >
    > Sanna @ Gene



    --
    /holman
  • Great idea, I will study this for the usage needed.
    Thanks!


    On 29.1.2010, at 15.53, Holman Romero wrote:

    > Hi,
    >
    > What you can do is:
    >
    > - Attach all the images you need for the article as usual.
    > - Give a special number (index) to the image you are gonna insert
    > inside text. Let's say number 200. This should become like a policy
    > for all articles where you need to do this.
    > - Then, in template you write the article images list (the one
    > displaying all images at the bottom of the page) like this:
    >
    > {{ list_article_images }}
    > {{ if $campsite->image->article_index != 200 }}
    > put your code here to show images
    > {{ /if }}
    > {{ /list_article_images }}
    >
    >
    > Hope this helps!
    >
    > On Fri, Jan 29, 2010 at 7:09 AM, Generare Management Department
    > wrote:
    >> Hi,
    >>
    >> can we add an image to the article text (with the editor button) if we have not added the image into the collection already?
    >>
    >> So, this is when editing articles and we want a photo "A" to be inside the text and we use it via editor tool from the image collection of the article, then it comes two times to the article, listed in the end of the article as attached images and inside the article. Also the thumbnail in front page is based on this attached image.
    >>
    >> So now we have the same image 2 times per article:
    >> - the one applied via text editor tool
    >> - the one that comes as attached images (in order to get it selectable for the text editor tool)
    >>
    >> Of course we could take off the image attachments from the template and it wouldn't be twice but we do need in some articles also the image attachments for additional photos atleast.
    >>
    >> I hope my explanation can be understood!
    >>
    >> Sanna @ Gene
    >
    >
    >
    > --
    > /holman
  • Hi again,

    where can I find the translation file for the text "- - ALL SECTIONS - -" that is in the advanced search selection of the section?

    I tried to look into the files by searching the sentence there but for some reason my editor is giving files not related to this.
  • Hi,

    Go to our wonderful localizer Smile in the admin area. Configure -> Localizer
    There, select "User Subscriptions Sections" from the "Screen" select
    menu. You will find the string you are looking for in that list below.


    On Fri, Jan 29, 2010 at 10:12 AM, Generare Management Department
    wrote:
    > Hi again,
    >
    > where can I find the translation file for the text "- - ALL SECTIONS - -" that is in the advanced search selection of the section?
    >
    > I tried to look into the files by searching the sentence there but for some reason my editor is giving files not related to this.
    >
    >
    >



    --
    /holman
  • Hi! Are punctuation and special characteristics (e.g. @#$%^&*()=) ignored in the search engine?
    Just need to know, that I can inform people.
  • The following characters may be part of words: $'-@_

    All other non-alphanumeric characters are ignored by the search engine.

    Mugur

    On Mon, Feb 1, 2010 at 1:36 PM, Generare Management Department <
    management@generare.com> wrote:

    > Hi! Are punctuation and special characteristics (e.g. @#$%^&*()=) ignored
    > in the search engine?
    > Just need to know, that I can inform people.
    >
    >