Viewing 11 replies - 1 through 11 (of 11 total)
  • Can you give me the feed?

    Thread Starter gongtones

    (@karambirsk)

    Hi,

    the image is exported as

    ATTACH;VALUE=URI;FILENAME=Kundalini Yoga Studio cropped ikyta.jpg;
    FMTTYPE=image/jpeg;MANAGED-ID=a75c198766;SIZE=59045:https:
    //p28-caldav.icloud.com/921694958/attach/2_UD44PQPF3C5CDZJOHK7Z3E7EHVWZEOD
    2FC2MECUQUKR667UYJRN6IAKZP3BQJ237GRTLOAQS4S4ANKRCAPMWWCIKKV22RMABTLAKLG2BD
    5UFFY2TUKIDWZZDXV2NDISXALQGUD4ENDJ544YQVAKA44XT3J74PDX2UYIV4627PP4Y7RS5I67
    X2ARLPDU7FSRQFHYCFBA2V6N2QEQPJVNXMAXRIHTDGJIILN3IYEI/Kundalini+Yoga+Studio
    +cropped+ikyta.jpg

    We do not parse the ATTACH value for now, i’m sorry, this is why it doesn’t work. IT should be linked directly into the description

    Thread Starter gongtones

    (@karambirsk)

    Let me make sure I understand. If I want the photo to automatically display in the event, I need to make it available somewhere on the internet and include a valid link?

    Hi, no if you want to display the photo it must be exported as html markup in the field “DESCRIPTION”

    DESCRIPTION:Karambir Singh Khalsa leads you through 90 minutes of
    Kundalini Yoga and Meditation as Taught by Yogi Bhajan. Please wear
    loose-fitting\, comfortable\, yoga clothes which cover the arms\, legs\,
    and chest. Bring a mat and water to hydrate after class. $10

    This field can contain HTML markup and it becomes the event description

    Thread Starter gongtones

    (@karambirsk)

    So it should be contained with a <img> tag?

    Yes, you should get the value from attach as

    https:
    //p28-caldav.icloud.com/921694958/attach/2_UD44PQPF3C5CDZJOHK7Z3E7EHVWZEOD
    2FC2MECUQUKR667UYJRN6IAKZP3BQJ237GRTLOAQS4S4ANKRCAPMWWCIKKV22RMABTLAKLG2BD
    5UFFY2TUKIDWZZDXV2NDISXALQGUD4ENDJ544YQVAKA44XT3J74PDX2UYIV4627PP4Y7RS5I67
    X2ARLPDU7FSRQFHYCFBA2V6N2QEQPJVNXMAXRIHTDGJIILN3IYEI/Kundalini+Yoga+Studio
    +cropped+ikyta.jpg

    is the url of the image

    $e->getProperty( 'attach' );

    could work

    Thread Starter gongtones

    (@karambirsk)

    I need to know where this function is found: get_post_thumbnail_url.

    The function is

    public function get_post_thumbnail_url( Ai1ec_Event $event, &$size = null ) {
    		return $this->_get_post_attachment_url(
    			$event,
    			array(
    				'medium',
    				'large',
    				'full',
    			),
    			$size
    		);
    	}

    you can call it with $this->_registry->get( 'view.event.avatar' )->get_post_thumbnail_url( $event, $size );

    Thread Starter gongtones

    (@karambirsk)

    my mistake. I need to see the definition of get_image_from_content

    Thread Starter gongtones

    (@karambirsk)

    also, when I attempted to enter html content in the description, the feed import created a second event rather than update the existing one.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How To Get Photo Attachments in iCal Feed to Display’ is closed to new replies.