1

私はちょうどJoomlaに入っています。テンプレート内に html/com_content/article ディレクトリを作成し、必要なファイルを /com_content ディレクトリからコピーすることで、記事ページを正常にオーバーライドしました。

これはフロントページでも可能であると読みました。ただし、 /com_content ディレクトリから frontpage ディレクトリが欠落しているようです。これはまだ Joomla 2.5 でサポートされていますか? フロントページに別のテンプレートを使用する必要はありませんが、これが唯一の選択肢のようです。

どんな助けでも大歓迎です。

乾杯トム

4

2 に答える 2

3

'frontpage' は 'featured' と呼ばれるようになりました。

のファイルをオーバーライドします。/components/com_content/views/featured/tmpl

于 2012-02-10T10:57:03.060 に答える
1

The 'front page' is simply a collection of articles that you deem to be on the 'frontpage'. I'm not sure what you mean when you say you've "overridden" article pages... are you referring to the template? You don't have to do that for each article (if that's what you're implying you did).

I think perhaps you're misunderstanding how the templating system of Joomla works with regards to the site if you're overriding each article you create? There is no 'frontpage' directory because there is no real 'frontpage'; the main template you assign with address the frontpage and all other pages on the site (every article) unless otherwise told not to.

So adjust your main template to adjust your frontpage. I think you're using template overrides in the wrong way.

于 2012-02-09T14:44:49.363 に答える