- Posts: 11
- Thank you received: 0
Can CP be used to automatically append code
- nameviolated
- Topic Author
- Offline
- New Member
Less
More
13 years 2 weeks ago #187
by nameviolated
Can CP be used to automatically append code was created by nameviolated
Can I use custom properties to automatically append code onto the bottom of content? Will need to display in both article and blog_item mode. Looking at putting code onto the bottom of each article with an image that the user can click which will lead to an external URL.
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
13 years 2 weeks ago #188
by andrea_4g
Replied by andrea_4g on topic Re: Can CP be used to automatically append code
The only things Custom Properties appends at the end of the article are the tags that have been assigned to that article.
The requirements are too sketchy (which image, which url , what kind of code, is it stored somewhere or it is inferred from the article, etc, etc) to give you any suggestion.
That sure looks like a task for a plugin. Possibly an existing one among the +8500 extensions for Joomla currently available.Looking at putting code onto the bottom of each article with an image that the user can click which will lead to an external URL.
The requirements are too sketchy (which image, which url , what kind of code, is it stored somewhere or it is inferred from the article, etc, etc) to give you any suggestion.
Please Log in or Create an account to join the conversation.
- nameviolated
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
13 years 2 weeks ago #189
by nameviolated
Replied by nameviolated on topic Re: Can CP be used to automatically append code
The image would just be one stored on the server ie. Click here button. The code would just be html which would be the same as href, image and image alt. the URL is also stored in the article params in SQL.
On a side note is it possible to display the tags in a table? So I could display say a 2x2 table with a different tag property in each box?
On a side note is it possible to display the tags in a table? So I could display say a 2x2 table with a different tag property in each box?
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
13 years 2 weeks ago #191
by andrea_4g
Cptags as a table:
No tables. But you can have your table-like layout with a modifications to the CSS stylesheet.
Replied by andrea_4g on topic Re: Can CP be used to automatically append code
I'm second guessing myself about the need for a plugin. Why don't you just write that html code at the end of the article?...code would just be html...
Cptags as a table:
No tables. But you can have your table-like layout with a modifications to the CSS stylesheet.
Please Log in or Create an account to join the conversation.
- nameviolated
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
13 years 2 weeks ago #197
by nameviolated
Replied by nameviolated on topic Re: Can CP be used to automatically append code
The html code would be at the end of every srticle and I add around 20 per day so trying to avoid copying and pasting each time.
Any links for the css code in tables off the top of your head?
Any links for the css code in tables off the top of your head?
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
13 years 2 weeks ago #205
by andrea_4g
Replied by andrea_4g on topic Re: Can CP be used to automatically append code
You should look here:
extensions.joomla.org/extensions/edition/custom-code-in-content
extensions.joomla.org/extensions/edition/custom-code-in-content
There's no standard CSS code for that. It strictly depends on the graphic layout you have to implement (colors, spacing, fonts, elements placement, etc).Any links for the css code in tables off the top of your head?
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds