All questions about EDocman extension

SOLVED !!! View Button in Table Layout

More
7 years 3 months ago - 7 years 3 months ago #92874 by John
How does one add a view button in the table layout?
Last edit: 7 years 3 months ago by Mr. Dam.

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

More
7 years 3 months ago #92877 by John
Replied by John on topic View Button in Table Layout
Disregard, I figured it out. I've attached my override if anyone else needs it.
Attachments:
The following user(s) said Thank You: Alison, Edward Grysiewicz

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

More
7 years 2 months ago #93502 by Alison
Replied by Alison on topic View Button in Table Layout
Hi John

Thanks for sharing. Where do I put this code?
Please explain simply, I am a simple girl ;)

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

More
7 years 2 months ago #93557 by John
Replied by John on topic View Button in Table Layout
Hello Alison,

Create a template override an put the file in there.

templates//templatename/html/com_edocman/common
The following user(s) said Thank You: Alison

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

More
7 years 2 months ago - 7 years 2 months ago #93587 by Alison
Replied by Alison on topic View Button in Table Layout
Thanks for your help John.
It does work, however I have both Word documents and PDF's on the same page and the view and download buttons do not line up.
See attached.
Attachments:
Last edit: 7 years 2 months ago by Alison.

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

More
7 years 2 months ago #93601 by John
Replied by John on topic View Button in Table Layout
Just a couple of things, my override was for audio files, so I eliminated and changed a few things in the file.

On or around line 108, I would change "Play" to whatever else you like, maybe "View" ??

It seems that only the Word docs can't be viewed. Is it a permissions issue?

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

More
7 years 2 months ago #93780 by Alison
Replied by Alison on topic View Button in Table Layout
No, I think because you need a viewer or the software to see MS Word docs.

If the code could be swapped so the 'download' button was on the left hand column, and the 'view' button was in the right hand column it would line up ok.

But I don't know what I need to switch in your code to make that happen :dry:

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

Moderators: Mr. Dam