I just made a breadcrumb for my site and put it in _content_page.html:
<% unless @page.home? %>
<ul id="breadcrumb">
<li><%= link_to "Home", root_url(:only_path => true) %> > </li>
<% [@page.ancestors, @page].flatten.collect do |p| %>
<li><%= link_to p.title, p.url %> <%= ">".html_safe unless p.id
== @page.id %></li>
<% end %>
</ul>
<% end %>
I'm wondering: Is there a better way to do this?
And, If I wanted to make this more reusable and add a page option in
the backend (Display Breadcrumb Yes/No) what would be the best
approach? Create a plugin?
Lastly, I'm falling in love with this CMS - Thank you sooo much!!!
Just working on my first site now but hoping it won't be too long
before I can contribute.
分享到:
相关推荐
资源分类:Python库 所属语言:Python 资源全名:the_refinery_toolkit-0.6.16.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
sugar_refinery, ruby的微小改进 ruby 糖厂 ruby Refinery是一组小型的精炼设备,用于用于 ruby 。设置&用法添加到 Gemfile:gem 'sugar_refinery', require: 'sugar_refi
sugar_refinery-main-源码.rar
python库。资源全名:tshistory_refinery-0.3.0-py3-none-any.whl
计算机视觉Github开源论文 MUTUAL MEAN-TEACHING PSEUDO LABEL REFINERY FOR UNSUPERVISED DO- MAIN ADAPTATION ON PERSON RE-IDENTIFICATION
Ruby Sugar Refinery 是 Ruby 的微小(声明性本地核心扩展)的集合。 设置和使用 添加到 Gemfile: gem 'sugar_refinery' , require : 'sugar_refinery/all' 然后向当前的 Ruby 文件或模块添加改进: using ...
炼油平台 ...$ cd refinery-platform $ vagrant up 根据计算机的速度和Internet连接,以上步骤大约需要15分钟。 如果出现错误,只需通过以下方法重试: $ vagrant provision 在网络浏览器中打开 。
python库,解压后可用。 资源全名:refinery-1.3.0-py3.5.egg
在控制台pip install data-refinery或python setup.py install从源python setup.py install 。 用法示例 from datarefinery . TupleOperations import wrap , keep , substitution from datarefinery . ...
资源来自pypi官网。 资源全名:refinery-1.3.0-py3.5.egg
Operational optimization of the utility system of an oil refinery Computers and Chemical Engineering杂志发表, 巴西应用实例。巨量文献引用。内含详细设计细节。
资源来自pypi官网。 资源全名:refinery-1.9.0-py3-none-any.whl
Label Refinery: 通过Label Progression改进ImageNet分类
炼厂CMS新闻 关于 精炼厂的新闻引擎使您可以将更新发布到网站的新闻部分。 主要特点: 默认新闻页面显示最近新闻的摘要 详细信息视图显示了完整的帖子,并且还链接... $ rake refinery:override view=refinery/pages/
Refinery CMS 的幻灯片扩展。 是的,滑块是邪恶的。 但是,它们仍然很常见,这是一个简单的 RefineryCMS 扩展,用于添加用户友好的滑块管理。 在主页上放置随机静态图像也很有效。 安装 # Gemfile: gem '...
refinerycms-portfolio, 在 Ruby on Rails 中,一个真正直接的开放源码的Refinery插件插件 炼油厂CMS产品组合 简单的投资组合引擎的炼油厂 CMS 。这里版本的refinerycms-portfolio 支持炼油厂 3.x 和 Rails 4.2. x. ...
COLLADA Refinery 是一个基于 GUI 的应用程序,用于使用称为调节器的模块化组件为 3D 资产创建内容管道。 联系项目管理员成为开发人员!