iam new to Kirby and php. But i want to write a plugin.
I want to be able to put a .pdf file in a object tag. Because if i drag and drop it in the panel view.
its create a file link (file:mypdf.pdf) So that users can click on the a href on my site. But i want the .pdf in a object tag. Because then its always visible.
But i got a Undefined variable. here is the script.
for some reason the code formating is al wrong, and it leaves a the part after return.
So here is a screen shot of the code http://puu.sh/lBZ06/aff85e80d4.png
wow you guys rock!
It works perfectly tanks!
I have just one more question.
If i drag a .pdf into the textfield it becomes (file:mypdf.pdf)
is it also posible to automaticly make it (pdf:mypdf.pdf)?