主题 : channel_list 的样式怎么能用我自己的
级别: 童生
UID: 21658
积分:31 加为好友
威望: 0 精华: 0
主题:3 回复:10
注册时间:2011-07-11
在线时长:0
1#   发表于:2011-07-11 11:20:19  IP:10.202.*.*
[@cms_channel_list parentId='154' style='0'  tpl='1' ]
  [#list tag_list as d]
  <li>
        <a class="a14" href="${d.url}"  >${d.name}</a>
 </li>
   [/#list]
 [/@cms_channel_list]
以上是我的代码,但是class="a14"没有起作用,怎么能用我自己的样式呢



另外jeecms官网的搜索框中输入channel_list后点击搜索报错
java.lang.StringIndexOutOfBoundsException: String index out of range: -31
java.lang.String.substring(Unknown Source)
com.jeecms.common.struts2.interceptor.UrlInterceptor.doIntercept(Unknown Source)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.jeecms.core.web.CookieIdentityInterceptor.doIntercept(Unknown Source)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.jeecms.common.struts2.interceptor.DomainNameInterceptor.doIntercept(Unknown Source)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.jeecms.common.struts2.interceptor.ProcessingStartInterceptor.intercept(Unknown Source)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:532)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
级别: 总版主
UID: 10736
积分:148511 加为好友
威望: 205 精华: 42
主题:287 回复:126215
注册时间:2010-09-08
在线时长:18
2#   发表于:2011-07-11 11:26:01  IP:111.207.*.*
搜索不能搜索_ ?等特殊符号
http://www.jeecms.com/bqsy/2353.htm
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 21658
积分:31 加为好友
威望: 0 精华: 0
主题:3 回复:10
注册时间:2011-07-11
在线时长:0
3#   发表于:2011-07-11 11:41:22  IP:10.202.*.*
我是想让我的子栏目居右显示,并且带颜色等样式,所以定义了css
但是channel_list下的标签在jeecms解析后把我的class属性都弄没了
[@cms_channel_list parentId='154' style='0'  tpl='1' ]
 [#list tag_list as d]
 <li>
  <a class="a14" href="${d.url}" >${d.name}</a>
 </li>
 [/#list]
 [/@cms_channel_list]
class="a14"不见了
你给我发的那个链接我之前也看了,但还是没有写清楚我应该用什么属性,style?userContent?能不能给提供个样例?
级别: 总版主
UID: 10736
积分:148511 加为好友
威望: 205 精华: 42
主题:287 回复:126215
注册时间:2010-09-08
在线时长:18
4#   发表于:2011-07-11 11:47:03  IP:111.207.*.*
您可以看下默认模版里面,样式引用是怎么引用的
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 21658
积分:31 加为好友
威望: 0 精华: 0
主题:3 回复:10
注册时间:2011-07-11
在线时长:0
5#   发表于:2011-07-11 12:59:11  IP:10.202.*.*
其实将tpl属性去掉就好了,还得靠自己研究啊
1 共1页