- Posts: 7
- Thank you received: 0
Any questions about Documents Sellers, post it here .
script
- bryan keller
- Topic Author
- Offline
- New Member
Less
More
12 years 3 months ago #18863
by bryan keller
script was created by bryan keller
I'm trying to place a google plus badge into the description page for a document so that I can connect it to a Google Plus Page. I could always add the google script at the head of the website itself but I would prefer to use the inline script and just place it within the description.
DS strips out the opening and closing tags for the script. Is there a way to prevent this?
Thanks,
Bryan
DS strips out the opening and closing tags for the script. Is there a way to prevent this?
Thanks,
Bryan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 3 months ago #18914
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: script
Hi Bryan
Maybe you can use the solution below:
1. Open the file administrator/components/com_dms/controller.php
2. Find the code below under save_document function (line 353 if you are using latest version)
3. Change it to :
After that, you should be able to insert the script into description of Document.
Regards,
Tuan
Maybe you can use the solution below:
1. Open the file administrator/components/com_dms/controller.php
2. Find the code below under save_document function (line 353 if you are using latest version)
Code:
$post = JRequest::get('post', JREQUEST_ALLOWHTML);
Code:
$post = JRequest::get('post', JREQUEST_ALLOWRAW);
After that, you should be able to insert the script into description of Document.
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bryan keller
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 3 months ago #19248
by bryan keller
Replied by bryan keller on topic Re: script
Unfortunately that did not do it. Let me show you an example of what it does: I was planning to use rich snippets to markup my html so that google will find the reviews, descriptions, etc. Well here is the html that I put into the document seller product description:
<div itemscope itemtype=" schema.org/SoftwareApplication ">
So, then I save the document and immediately upon looking at the html has been changed to this:
<div itemscope=" schema.org/SoftwareApplication ">
You see how it has stripped out the itemscope?
There has to be some way to prevent this from happening.
Thanks,
Bryan
<div itemscope itemtype=" schema.org/SoftwareApplication ">
So, then I save the document and immediately upon looking at the html has been changed to this:
<div itemscope=" schema.org/SoftwareApplication ">
You see how it has stripped out the itemscope?
There has to be some way to prevent this from happening.
Thanks,
Bryan
Please Log in or Create an account to join the conversation.
- bryan keller
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 3 months ago #19249
by bryan keller
Replied by bryan keller on topic Re: script
Also I wanted to ask you if there is way to get Document seller to work with jreviews?
Thanks,
Bryan
Thanks,
Bryan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.