CB Helloworld Plugin (part 2)
- nant
- OFFLINE
- Posts: 25532
- Thanks: 1834
- Karma: 877
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.
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
Please Log in or Create an account to join the conversation.
- kmchen
- OFFLINE
- Posts: 28
- Thanks: 0
- Karma: 1
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 or Create an account to join the conversation.
- nant
- OFFLINE
- Posts: 25532
- Thanks: 1834
- Karma: 877
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.
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
Please Log in or Create an account to join the conversation.
- jmedina
- OFFLINE
- Posts: 15
- Thanks: 0
- Karma: 0
Please Log in or Create an account to join the conversation.
- nant
- OFFLINE
- Posts: 25532
- Thanks: 1834
- Karma: 877
I am glad the tutorials helped - why dont you post the plugin in the 3PD forum for others to benefit?
--
Nick (nant)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Tutorials + Search the forums
For more add-ons and support: Upgrade your membership
Links: Community Builder - Languages - Adv/Pro/Dev membership - CBSubs Paid Subscriptions - GPL Templates - Hosting
Visit my CB Profile - Send me a Private Message (PM)
Please Log in or Create an account to join the conversation.
- jmedina
- OFFLINE
- Posts: 15
- Thanks: 0
- Karma: 0
Please Log in or Create an account to join the conversation.