Joomla 2.5的插件很多,也正是因为这些插件所以很强大。

aiContactSafe以及sh404sef。

sh404sef是迎来sef的,让你的url美观优化seo的,

aiContactSafe是一个简单强大的表单插件,能提供反馈表单的提交之类,但是如果你只是按照了以后,sh404sef显然不能很好的作用。默认的产生的地址是这样的类似:component/com_aicontactsafe/Itemid,116/layout,message/pf,1/redirect_on_success,/view,message/

然后处理下,怎么修改设置呢?一开始是想改sh404sef,设置方面,但是好像情况也不是很好,没有很好的效果。

后来搜到这样的一些回复:

Looking for this myself, there is a way to add your own SEF url via SH404 in the meantime. Worth setting up for the main contact page.
First create a menu link to the contact form. The go to the menu item and copy the link to clipboard. Should look something like this:
index.php?option=com_aicontactsafe&view=message&layout=message&pf=1&redirect_on_success=
Then go to url manager within SH404 and add a new url and insert this link into the 'non-sef' url. Add your own SEF url in, e.g. contact.html.
You then need to assign an alias. Go to your site and click on the menu item taking you to the contact form. Copy the long url to clipboard. Should be something like:
component/com_aicontactsafe/Itemid,116/layout,message/pf,1/redirect_on_success,/view,message/
Go back to the url manager within SH404 and select the newly created url, go to 'alias' tab and insert this url.
Bit long winded, but only takes 2 minutes and is worth doing.
Hope this is of help.

These two components still don't play well together but there is a very simple solution.

Instead of creating a menu link directly to the component, create an article and publish the aicontactsafe module into the article using the loadposition function. Now when you create a menu link to the article sh404sef treats it as an article and creates a nice url accordingly.

就像是wordpress上面的一样的,可以建一个空白的页面或文章,然后把表单放里面,然后在弄在menu上就好了。正好aiContactSafe也有这样的配合的插件提供。aiContactSafeForm。直接在aiContactSafe后台点安装就可以了。

然后一些设置怎样的,很简单。可以参考这边:http://www.algisinfo.com/en/tutorials/aicontactsafe/6-aicontactsafeform.html

一般的设置是这样的。use_css=1的只有这样一个=1。好像就是用来居中的。


1
{aicontactsafeform pf=4|use_css=1}

一切ok,这样就可以用sh404sef来设置文章的链接了。