CB Helloworld Plugin (part 2)

15 years 4 weeks ago #24132 by nant
Replied by nant on topic Re:CB Helloworld Plugin (part 2)
jmedina wrote:

I tried that!

It's not as simple as just adding the code after the return variable. There is all kinds of escapes involved.

I usually don’t post in the forum until I have exhausted my resources.

I read the API documentation about URLs and it said something about using a getParm variable, but to he honest that document is just over my head a bit. Can you give me an example of displaying a link in a plug-in.

In other words can you post the code, where I can just copy and paste it into the hello world 2 plug-in and get a link? I think I can take it from there.


Try this:

[code:1]
. "<a href=\"http://www.joomlapolis.com\">Joomlapolis"
[/code:1]

just before the line

[code:1]. "</div>\n";[/code:1]

in the example.

Please Log in to join the conversation.

15 years 4 weeks ago #24138 by kmchen
Replied by kmchen on topic Re:CB Helloworld Plugin (part 2)
Thanks Nick for your quick answer that permitted me to progress.

I need a little help more. I put the fields to 1 in the xml file and now I have my tab appearing in the backend with fields I create by hand in the same backend.
But the outputs of my getDisplayTab method appear correctly in frontend but not at all in the backend.
:sick:

Please Log in to join the conversation.

15 years 4 weeks ago #24141 by nant
Replied by nant on topic Re:CB Helloworld Plugin (part 2)
kmchen wrote:

Thanks Nick for your quick answer that permitted me to progress.

I need a little help more. I put the fields to 1 in the xml file and now I have my tab appearing in the backend with fields I create by hand in the same backend.
But the outputs of my getDisplayTab method appear correctly in frontend but not at all in the backend.
:sick:


That's correct the getDisplayTab function handles non-edit mode display and backend viewing is in edit mode.

You need to use the getEditTab function also explained in the API document.

Please Log in to join the conversation.

15 years 3 weeks ago #24231 by jmedina
Replied by jmedina on topic Re:CB Helloworld Plugin (part 2)
Thanks Nick ! That helped me get what I needed. I now have a link on my profiles to a zoom search for the user.

Attachments:

Please Log in to join the conversation.

15 years 3 weeks ago #24243 by nant
Replied by nant on topic Re:CB Helloworld Plugin (part 2)
2 jmedina:

I am glad the tutorials helped - why dont you post the plugin in the 3PD forum for others to benefit?

Please Log in to join the conversation.

15 years 3 weeks ago #24247 by jmedina
Replied by jmedina on topic Re:CB Helloworld Plugin (part 2)
I am planning on it. I just need to clean it up so that it is not my site specific. I also have to package it :)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.216 seconds