Jump to content

 

rtp

Member Since 26 Aug 2013
Offline Last Active Jul 13 2018 11:49 AM
-----

Topics I've Started

How to upload images in an addon?

03 September 2013 - 07:33 AM

Hello

I'm trying to add an additional field to content pages to upload an image. I know you can insert images into the RTE, but because of design issues we need to have more control.

I tried to use the "common/attach_images.tpl" template, but I'm kinda lost on what I have to do in the controller afterwards to save the images and add them to the images Database.

Any help you guys can give me would be much appreciated
Regards

Execute addon code before block

29 August 2013 - 09:51 AM

Hello

I've created an addon which includes a static template block.
My question is, how can I execute code before the static block is rendered?

Static block path:
design/themes/<theme>/templates/addons/<my_addon>/blocks/static_templates/filter.tpl

Addon structure so far:
app/addons/<my_addon>/addon.xml
app/addons/<my_addon>/func.php
app/addons/<my_addon>/init.php

Regards