Any questions about Documents Sellers, post it here .

Titles - Editing or Deleting them

  • philbert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #10719 by philbert
Titles - Editing or Deleting them was created by philbert
I’m having difficulty editing or removing the titles of Document Seller categories and documents that show up in the short description and details column layout of my products.

In the short description view, in the frontend of my website, the title of the category shows up (“Comics”), which is fine, but then right underneath there’s a big “Documents” title over the column layout of my products. I’d like to delete “Documents,” but I can’t find this option in Document Seller configuration. In my Joomla 1.6 Options, I’ve set all articles and so forth to hide such titles. I see that in the Document Seller Demo, “Documents” appears above the column layout. Is there no way to remove that title?

Also, through the details link, my product’s title shows up (beside the golden box icon), which is fine, except that the title is underlined as if it were a link. In the demo, the title isn’t underlined, and I’d like to remove the underline but I can’t see where the option is given.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #10739 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Titles - Editing or Deleting them

In the short description view, in the frontend of my website, the title of the category shows up (“Comics”), which is fine, but then right underneath there’s a big “Documents” title over the column layout of my products. I’d like to delete “Documents,” but I can’t find this option in Document Seller configuration. In my Joomla 1.6 Options, I’ve set all articles and so forth to hide such titles. I see that in the Document Seller Demo, “Documents” appears above the column layout. Is there no way to remove that title?


=> Please open the file components/com_dms/views/category/tmpl/columns.php, look at the code at line 80 :
Code:
<h2 class="dm_title"><?php echo JText::_('DMS_DOCUMENTS'); ?></h2>

and change it to (or remove that line of code):
Code:
<!--<h2 class="dm_title"><?php echo JText::_('DMS_DOCUMENTS'); ?></h2>-->

Also, through the details link, my product’s title shows up (beside the golden box icon), which is fine, except that the title is underlined as if it were a link. In the demo, the title isn’t underlined, and I’d like to remove the underline but I can’t see where the option is given.


=> Open the file components/com_dms/views/document/tmpl/default.php, looks at the code from line 31 to line 33 :
Code:
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>"> <?php echo $item->title; ?> </a>

Change it to :
Code:
<?php echo $item->title; ?>

After that, everything should work fine !

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • philbert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #10757 by philbert
Replied by philbert on topic Re: Titles - Editing or Deleting them
Thanks very much, Tuan!

I made the changes and the underlines on the details page disappeared, but the word "Documents" still appears over the column layout. Just to confirm, is the needed change just the adding of "<!--" and "-->" to the front and back of line 80? Can you double-check that that change should work?

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #10984 by brianroe
Replied by brianroe on topic Re: Titles - Editing or Deleting them
I also need help with this! I have tried the suggestion above but nothing has changed. Please assist.
deadempire.co.uk/downloads.html
Example

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #10985 by brianroe
Replied by brianroe on topic Re: Titles - Editing or Deleting them
I have worked a solution by editing the en-GB.com_dms.ini (in languages/EN-gb)
Line 3
DMS_DOCUMENTS=MP3's and Zip Files

Job done.

Please Log in or Create an account to join the conversation.

  • philbert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 months ago #11002 by philbert
Replied by philbert on topic Re: Titles - Editing or Deleting them
I'm having another problem now. The translations seemed to have stopped working, so that in the columns for the products on my webpage it says "DMS_Documents" and the buttons say "DMS_ORDER_IT" and "DMS_DETAILS." But in the translation part of Configuration, the translations say "Documents," "Order" and "Details."

The translations were working on my website fine until I just checked them today, after I changed one of the Paypal translations and temporarily deleted the "Documents" translation (to see if this would remove the uwanted Documents title on my website). I then put the "Documents" translation back in the translation section of Configuration, and when I checked my website the translations were all screwed up. The translations might not have been working for awhile and it might have been just a coincidence that I found them to be changed in the website only after I edited different translations, but I really don't know what's causing this. Can someone please help?

And I'm still trying to get rid of the "Documents" title over the column layout of my products. Tuan's code change didn't work and I don't understand brianroe's suggested code change.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #11009 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Titles - Editing or Deleting them
Hi philbert

It seems the language file was broken when you changed something. In this case, I would suggest that you download latest version of the extension and re-install it on your site .

After that, please submit a support ticket giving me FTP account of your site so that I can modify the code to remove "Documents" word for you !

Regards,

Tuan

Please Log in or Create an account to join the conversation.