Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Article 2.00RC
by mboyden on 2010/1/12 14:17:45

Okay, your two items:
1) Date/Time info in main page template
2) Spotlight

First, remember this is an RC release (release candidate). This module is not yet finished. YMMV depending on needs.

1) Date/Time modification
The index comes in several forms depending on the option you choose in preferences "Template". Suppose you are using the one called 'blog'. In this case, the article_index_blog.html is the governing template for the main page. Each index page does a forloop include of a template for each item. In this case, the article_item_blog.html is the template for the included item. Therefore, depending on your needs, you have to edit both of these.

For your needs, it's in the item template, so I'll use article_item_blog.html. In there, you will find the <{$article.time}> tag. This is the one you want to remove if you want to get rid of the entire date/time.

BTW, this item template may be used and included in other locations and templates, so you may have to write some code that realizes that. Or, alternatively, you could cut and paste the entire item template into the main index template to replace the template include call and modify there as desired.

2) Spotlight Block Rendering
In the options of the spotlight block is one labeled "Only Specific Entry" or something like that. Make sure it is set to no or you won't see anything. It looks like the author was going to add some options related to that, but they aren't in there yet. When set to Yes, I see only labels in the Spotlight block rendering. When set to No, I see the single latest post. Personally, I'm using the Recent News block. Remember, too, you can clone blocks, which might be your best bet if you need more than one of these.

Hope that helps. Good luck!
Re: Article 2.00RC
by ghia on 2010/1/12 13:47:42

Remove <{$article.time}> from /modules/article/templates/article_inc_category.html

The default installation of the module comes with 4 article examples and one is in the spotlight. What did you change?
Re: Article 2.00RC
by chefry on 2010/1/12 13:07:20

I've gone through all the templates, and I cant' see where it is calling the info.

that's the problem...

that and the spotlight isn't working.
Re: Article 2.00RC
by mboyden on 2010/1/11 23:48:10

Yes, the management of templates is in the administration area. I would highly recommend using GIJoe's AltSys module as it's a bit easier to make changes with. I've got notes on implementing it in the forums. It makes management, development, and changes to system templates much easier (as well blocks, too).

Let me know if that isn't clear enough.

FYI, in case it's not clear, one of XOOPS' early strengths was its adoption of the presentation layer separated from the functional, computational layer. The data is passed to a Smarty Template and then the data is presented with the HTML in the template using data tags in the template. Even if you don't know Smarty inside and out, it's pretty easy to change what you are looking for if you know HTML, because it's essentially just HTML with some embedded data tags.

Clear as mud?
Re: Article 2.00RC
by ghia on 2010/1/11 23:08:18

If the dates are in a named div, you could also add a display:none; in the CSS file.

Who's Online

193 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits