Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

tabular llook for Document list.
(1 viewing) (1) Guest
Document management system (DMS) component for Joomla!

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.
  • Page:
  • 1

TOPIC: tabular llook for Document list.

tabular llook for Document list. 14 years, 5 months ago #13050

Please help.
I need simple tabular layout with numbering for document list (like Rubberdoc). How it is possible. Please suggest. Where should I change the file. and Please post some coding to assign numbering.
Thank you in advance.
The topic has been locked.

Re:tabular llook for Document list. 14 years, 5 months ago #13144

I am in the process of creating the tabular style. I am interested in these items appearing in the list:
1) Icon
2) Name with "new!" and "Hot" spans.
3) Description
4) Update Date

I edited JoomDocs GUI config until these appeared.

Create The Row Structure
To accomplish the row structure, use CSS and the float:left in the class for each item. This will create the row structure for each item. I also changed the text appearance.

The CSS File is stored in [var/www/sitename]/components/com_joomdoc/views/themes/default/css/theme.css

Add the following code:

.dm_icon{
clear:both;
float:left;
}
.dm_name{
float:left;
width:325px;
}
.dm_description{
float:left;
background-color:transparent;
 
color: #000000;
display: block;
font-family: "Times New Roman",Georgia,serif;
font-weight: normal;
text-align: left;
text-decoration: none;
margin-left:250px;
}
.dm_taskbar{
float:left;
}
 
 

I did not add cells, but simply wanted the list to show each item. (I may change this later).

Add Numbering
Next you will have to add the numbering php to the output page. The file output for each item in the display page is [var/www/sitename]/components/com_joomdoc/views/themes/default/templates/documents/document.tpl.php

In here you can add a counter that will display each item, or you could display the row id of the jos_joomdoc table.

In the CSS you would simply create a class and then assign it to the DIV element created for the number.

.dm_number{
float:left;
}


At the bottom of document.tpl.php there is a clear div. You could also a line here for a more table like effect.

Button Hack
If you disable the download button or the buttons altogether, then the name doesn't link to the document. I have read in the past week a way to fix this and I am currently investigating.

Sort By Hack
To Sort by additional fields (Description) you will need to create the link. This is what I am currently working on and will post when I have an answer.

So far I have made chagnes in the following files:

/components/com_joomdoc/helpers/documents.php
/components/com_joomdoc/views/themes/default/language/english.php
/components/views/themes/default/documents/list_order.tpl.php

If you add to the other order by items it should work. There is also a missing | separator on the Hits sort link.

For the Sort By Hack, I am looking for the call to the database to change the sortby to the field dmdescription
The topic has been locked.

Re:tabular llook for Document list. 14 years, 5 months ago #13147

Follow Up:

Sort By Hack
In addition to adding the description value to the arrays above the order by looks to make sure the text matches a pre defined list or it defaults to the dmname field.

In the File [/var/www/sitename]/administrator/components/com_joomdoc/classes/DOCMAN_utils.class.php

Line 1763:
Add the switch statement for the line:

case 'description' : $ordering = 'd.dmdescription';
break;



Remove Buttons Hack
www.artio.net/support-forums/support-for...an-2/download-button

Keep simple buttons plug-in enabled.

You can enable the button you want the title to use or delete/comment out the switch towards the top of the page list_item.tpl.php around line 179 for dm_name and possibly dm_icon/dm_thumb.


Open /components/com_joomla/views/themes/default/templates/documents/list_item.tpl.php

Around line 309 there is a <div class="dm_taskbar">......</div>

Either delete the entire div open to close or comment out the include line that calls the buttons.
The topic has been locked.

Re:tabular llook for Document list. 14 years, 5 months ago #13312

Thanks for you response. I make some customization around there and overall I am satisfied with the look. I think we can also change the document list into tabular view by changing the code. But that seems difficult.

I succeed to add add numbering by altering the file list.tpl.php and list_item.tpl.php (/components/com_joomla/views/themes/default/templates/documents/):

Just change line 58-61 with follwing lines of list.tpl.php:

echo("<ol>");
foreach($this->items as $item) :
$this->doc = &$item; //add item to template variables
include $this->loadTemplate('documents/list_item.tpl.php');
endforeach;
echo("</ol>");

and in the list_item.tpl.php insert <li> tag in line 54 and </li> at last.

This tweak will add numbering for each document. Please suggest me if you have better solution.

Still there is some problem. The numbering starts from 1 for each page. isn't there any method to continue the same numbering upto last of the document. i.e. document numbering must start from 6 in page 2, 11 in page 3 and so on.

Thank you.
Last Edit: 14 years, 5 months ago by rabipoudel. Reason: Some bug found.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný