Giter Site home page Giter Site logo

dawesi / murabanners Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevewithington/murabanners

0.0 2.0 0.0 232 KB

A Mura CMS (http://www.getmura.com) plugin. MuraBanners enables you to have a specific banner for each page of the site.

License: Apache License 2.0

ColdFusion 95.46% JavaScript 4.54%

murabanners's Introduction

#MuraBanners TM

MuraBanners enables you to have a specific banner for each page of the site. If no banner is selected for a specific page, then this plugin begins checking each parent on up to the Home Page looking for one to use, unless you explicitly set Use Parent Banner to No, or its parent doesn't have a banner and is set to No. You can even specify the width and height of the banner.

##Content Editors/Authors

Simply go to the Extended Attributes tab, then upload a banner image (.jpg, .jpeg, .gif, .png). If your layout template doesn't already contain the code for the banner to display, you can use [mura] tags to do so inline with your content via the Content Editor.

###Example:

[mura]$.muraBanners.dspBanner()[/mura]

The banner may also be assigned to a display region as a configurable content display object. Go to Layouts & Objects > Select 'Plugins' from the 'Available Content Objects' select menu > Select 'MuraBanners' from the list of plugins > Select 'MuraBanner' and assign it to your desired display region. When the 'MuraBanner' configurator appears, select your desired 'Banner Size' from the list of options and click 'Save' then Publish your page.

##Developers & Designers

You can easily drop the following code into any layout template (e.g., header.cfm) and be done:

###Example:

#$.muraBanners.dspBanner(width=yourDesiredWidth, height=yourDesiredHeight)#

###Mura 6.0 Example As of Mura 6.0, you can now create custom image sizes via Site Config > Edit Site > Images tab. This enables you to select your own crop region of the banner image! Simply pass in the size attribute with your custom image name.

#$.muraBanners.dspBanner(size='mybannerimage')#

##Tested With

  • Mura CMS Core Version 6.0+
  • Adobe ColdFusion 10.0.4
  • Railo 4.0.2

Should Also Work On

  • Mura CMS Core Version 5.6.4859
  • Adobe ColdFusion 9.0.1
  • Railo 3.3.1

##License Copyright 2012 Stephen J. Withington, Jr.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

murabanners's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.