Fork me on GitHub

[PageMaster] Show uploaded image in pubedit template  Bottom

Go to page [-1] 1 - 2:

  • Result:

    Code

    <img src="upload/" alt="thumbnail" />
    You're getting warmer... icon_wink

    --
    Harness Technology
  • Weird, to me $imagedata.tmb_name should display the value shown in the pndebug output icon_confused Ideally those lines should get it:

    Code

    {assign var='imagedata' value=$image|unserialize}
    {assign var='thumbnailUrl' value="`$pncore.PageMaster.uploadpath`/`$imagedata.tmb_name`"}
    <img src="{$thumbnailUrl}" />

    maybe

    Code

    {assign var='thumbnailUrl' value="`$pncore.PageMaster.uploadpath`/`$imagedata[tmb_name]`"}

    P/S: Don't worry, I'm working on the Clip Export/Import stuff while we're solving this icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • No change using the updated code. I wish I knew enough to try some other things on my own. :(

    --
    Harness Technology
  • We have an issue here,
    at least on 1.3, it works:

    Code

    {assign var="imagedata" value=$pubdata.image|unserialize}
    {assign var="path" value="`$modvars.Clip.uploadpath`/`$imagedata.tmb_name`"}
    {$path}
    and prints the complete path:
    ztemp/Clip/d22bf5401c5jeve8p3wfql7e6m948s.jpg icon_confused

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Don't sweat it. icon_cool

    --
    Harness Technology
  • Ok icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • But thank you oh so much for trying. icon_biggrin

    --
    Harness Technology
  • I was searching how to delete an image in PM and I found this post. I solved creating a template containing only

    Code

    <!--[if $immagine1.url neq '']-->
    <img src="<!--[$immagine1.thumbnailUrl]-->" title="Thumbnail" alt="Thumbnail"  width="132"/>
         <!--[/if]-->
    and I called in this way:

    Code

    <!--[pnmodfunc modname="pagemaster" type="user" func=viewpub tid=$core_tid pid=$core_id template=Documentari-immagine1]-->




    Edited by arkanoyd on Jun 22, 2011 - 02:11 AM.
  • I use this code to show the uploaded images in the pubedit:

    Code

    <!--[assign var='bildtmb1' value=$bild1|unserialize]-->
                    <!--[if !empty($bild1)]-->
                    <div class="z-formrow">
                    <!--[pnformlabel for='bildtmb1' __text='1. Bild']-->
                    <img src="PageMaster/<!--[$bildtmb1.tmb_name]-->" />
                    </div>
                    <!--[/if]-->


    @arkanoyd Did you find out a way to delete uploadet images through the pubedit-template?

    Greetings from Germany
    Thomas
  • sorry, I didn't...
  • Unfortunately the deletion of the image wasn't considered on PageMaster, and even when I haven't implemented it yet for Clip, that feature will be included on the 0.9 release. Greetings

    --
    - Mateo T. -
    Mis principios... son mis fines
  • @nestormateo Sorry for asking so often about this feature/bug. But in all my projects I am using Pagemaster (at the momen 0.42) and my clients often ask for this feature. I tried own solutions (looking how Pagesetter was handling this), but I didnīt find a solution. So it is really important to have a quick solution for that problem. It is unlogical to have upload fields without the possibility to delete. I would pay for it if you send me an message how much it costs!!!
    Greetings
    Thomas

Go to page [-1] 1 - 2:

This list is based on users active over the last 60 minutes.