Styling Grounds

Permalink Browser Info Environment
Hi Michael,

In your example you use a Blockquote piece of styling. How is this applied?

...and a second question, this may not be possible, but can a sidebar menu show subpages and just their parent page? e.g.

Parent
- sub page 1
- sub page 2

Type: Discussion
Status: In Progress
jamesleech
View Replies:
MichaelG replied on at Permalink Reply
MichaelG
<blockquote>
    <p>My quote here</p>
    <cite>The Author</cite>
</blockquote>


That is kind of manually done in the HTML because I don't think the WYSIWYG has cite and blockquote in the dropdown. If you're familiar with creating blocks, it'd be really simple to make though.

So for the subnav, you're looking to have something so that if you on the subpage, it would show the other subpages, as well as the parent name?
jamesleech replied on at Permalink Reply
jamesleech
Hi Michael,

Thanks for your explanation of blockquote styling. You had done a nice design but I was scratching my head how to show my client to do it without going to the code stage. At least I know that using code for some of these aspects is still a normal requirement. I thought I was missing a style dropdown menu that was staring me in the face.

On the sidebar nav, I like how your sidebar nav menu's are styled for example here:
http://grounds.isitvivid.com/shop/coffee-goods/...

Imagine in the example shown above that the menu was able to show the parent "Shop" and children "Coffee goods" and "Baked Awesomeness" as the indented items - but not show all of the other siblings of "Shop" e.g. Home, Layout Examples, Theme Help etc...

This may be a autonav issue to do with Concrete5 in general but I'm not cluey enough to be sure.
MichaelG replied on at Permalink Reply 1 Attachment
MichaelG
Here, unzip this in your /blocks/ folder, and install it from the blocks page.

:) :) That's an easy way to 1. use that block for blockquotes 2. A very simple block you may be able to copy, edit, and reuse for other client sites.
MichaelG replied on at Permalink Reply
MichaelG
I might be able to whip up a custom template for autonav to do what you want as well. I may have what you need already.
jamesleech replied on at Permalink Reply
jamesleech
Hey Michael,

Thanks for the blockquote Did you just make that block up?
I installed it in siteroot/blocks and added the custom block but it doesn't seem to hold the added content.

I don't mean to make you work overtime on this - the client hasn't noticed the styling limitation so it's not a deal breaker... just somthing I was trying to solve.

I'm not sure if it's worth mentioning to you as a developer, but it's a real shame that users of the new C5 site won't be able to see the support section of purchased Theme or Add-on after a certain timeframe. I can't actually see the support area any more for this theme except when I have a direct link to a unique support discussion. I have all sorts of purchased items that I've never implemented! (but I know thats a message for the core C5 team.

J
MichaelG replied on at Permalink Reply
MichaelG
Re: the marketplace support stuff. They've changed quite a lot around, and while it may not make sense, there's really good reason behind it.

1. There's a lot of people who reuse the same license 40x over, and have the nerve to ask for support. I don't have many of those people. But I know people with popular add-ons (such as ProBlog) certainly do. Since they can't control what people do with a download, the least they can do is kill off support.

2. Support isn't a requirement, we as developers have the option to select if we prefer to not support it at all, reply to tickets every few days, everyday, or sell support at $x/hr. But whatever the choice, it's limited to 30 days. Due to that, I'm certainly trying to be better about it.

You do raise a good question though, and I think about people who might have bought 5-packs, and have a different question for a different use throughout the different sites those may apply to.
jamesleech replied on at Permalink Reply
jamesleech
Yes - i can believe it... it would really suck to have people using your code without paying - especially add-ons as they would be re-used a heap. I find my clients are more than happy to pay for add-ons once I explain the work involved.

One issue I have is that I buy an add-on totry it out - but might not use it if the client doesn;t like it. I must have spent $100's on add-ons and themes - 20 - 30% have never been used on a job! (Great for my education though)...
MichaelG replied on at Permalink Reply
MichaelG
So I don't have a template handy, but here's essentially how to do the autonav thing you're looking for.

Add an autonav block to your subpages, use "Display at the current level". This will show you all of the sibling nav items.

Next, make a custom template of the autonav by copying root/concrete/blocks/autonav/view.php to root/blocks/autonav/templates/siblings_with_parents/view.php (you'll need to make those folders).

In view.php down towards the bottom, you'll see where it opens up the first UL.
add this above it
global $c; //gets current page
$nh = Loader::helper('navigation');
$parent=Page::getByID($c->getCollectionParentID()); //gets page object of parent
echo "<a href='".$nh->getCollectionURL($parent)."'>".$parent->getCollectionName()."</a>";
jamesleech replied on at Permalink Reply
jamesleech
I just tried this free block and it picks up your styling (except the quotation marks).

http://www.concrete5.org/marketplace/addons/block-quoter/...
MichaelG replied on at Permalink Reply 1 Attachment
MichaelG
whoops! Try this. And yes, while this is certainly out-of-scope, I'm pretty terrible at responding to tix in a timely manner, so I do what I can.
jamesleech replied on at Permalink Reply
jamesleech
Much appreciated. Hope things are going ok for you.

I was imagining the worst when there were no replies to support queries (dropped dead of a heart attack etc..) so glad you are back and firing. :-)

concrete5 Environment Information

# concrete5 Version
5.6.3.2

# concrete5 Packages
eCommerce (2.8.12), eCommerce - Local Pickup (1.1.1), eCommerce - Product Based Shipping (1.0.1), eCommerce Stock Controlled Product Attribute (1.0), Grounds (1.0.1), Manage eCommerce Product Toolbar Button (0.9.1), Pro Blog (12.4.0), Table-Based Shipping (1.1.0).

# concrete5 Overrides
blocks/product, blocks/product_list, languages/sv_SE, languages/fi_FI, languages/es_ES, languages/tr_TR, languages/es_AR, languages/de_DE, languages/pt_PT, languages/it_IT, languages/zh_CN, languages/sk_SK, languages/es_PE, languages/ar, languages/he_IL, languages/el_GR, languages/fr_FR, languages/ru_RU, languages/sl_SI, languages/fa_IR, languages/ja_JP, languages/vi_VN, languages/es_MX, languages/nl_NL, languages/ro_RO, languages/zh_TW, languages/nb_NO, languages/da_DK, languages/cs_CZ

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
5.4.32

# PHP Extensions
bcmath, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.