Jump to content

help with module


sakkoulas
 Share

Recommended Posts


hi can anyone help me with a module that i want to build.

the total idea is to use some external image manager program add load images inside my page without upload them inside my page. so my page will be lite and if my images database become to big ι can move it in a new server and everything will work fine.

is that possible? 


i think inside page to have a field maybe url FIeld with a button, and on click will popup  iframe of (ajaxplorer or maybe some other programme) that is it inside my root. so i can see files and images of ajaxplorer.  the second step is when i select a file inside (ajaxplorer or maybe some other programme) i will get the url inside my urlField.

i have look many modules but i can't find how they create the button inside the page. 

thanks.

Link to comment
Share on other sites

ok i think i did it, i have only one problem my button appears in all InputTextFields,is there a way to show my button in the InputeTextField that i want?

i use the addHookAfter('InputFieldText::render').

thanks

Link to comment
Share on other sites

i have just one question (maybe i'm lying ) :P
is it possible to add attribute to an Input Field Text; that i create inside a module
the attr that i want to add is "onclick", "openKCFinder(this);"
i have try but i get an error <Method Field::attr does not exist or is not callable in this context>

thanks

Link to comment
Share on other sites

thanks soma.
until now i have made a module that generate a inputfieldtext inside my page (1), (Yeeeeaaa),   on click (3) shows a kcfinder window (2) and i can (re)select, upload or delete files inside my root. my problem is that i want that field to be a repeater field so i can select more than one files. i have try to insert repeater field but then i  cant add attributes (onlick do somethin) inside fields. 

Any help will be greatly appreciated

thanks for another time

post-881-0-41996800-1373203828_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...