Giter VIP home page Giter VIP logo

content-viewer's Introduction

Welcome

This is the source for CalebGrove.com.

Requirements:

To build this site successfully, you will need to have the following installed on your machine:

Cheers!
~ Caleb Grove

content-viewer's People

Contributors

calebgrove avatar samuba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

content-viewer's Issues

Error Loading Widget

Call to a member function text() on boolean
/site/plugins/content-viewer/widget/widget.php
Line 7: if($page->$field()->value()->isNotEmpty()){

Multi-lingual Site
Kirby version: 2.5.7
PHP 7.0.25

any ideas?

Add config to always hide edit button

Sometimes you don't even want admins to see the "edit" button. There should be a way to hide the button from everybody. Anyone with filesystem access will still be able to directly edit the .md file to update the content.

No shared CSS

This is not a bug, but there's almost exactly the same CSS stored in three different places.

site/plugins/content-viewer/widget/template.php
site/plugins/content-viewer/templates/content-viewer.php
site/plugins/content-viewer/templates/content-viewer-source.php

Of them, only site/plugins/content-viewer/templates/content-viewer.php has few CSS rules which are not shared, but it would be easy to just overwrite them (as it's being done already).

The main problem is that you have to edit all these 3 files in order to change styling in all of these 3 views. Of course, sometimes you'd want to have different styles for each one. But that's perfectly fine if you have a shared base-style and then can easily build upon it or just overwrite what you want.

Permission name for the widget is panel.widget.widget

If you have in your Kirby Role the wildcard permission set to false ('*' => false) you have to set the permission for this widget explicitly.
Unfortunately that would look like this at the moment: 'panel.widget.widget' => true
Which is pretty nasty because you dont know what widget that actually is and you get serious problems if another widget you use did the same mistake.

For reference and context, here is the discussion I had with texnixe on the topic:
https://forum.getkirby.com/t/widgets-are-auto-hidden-when-permission-is-false/9758

move widget over and make wider in panel

Hi Caleb, Thank you soo much for making this publicly available. We always write client documentation by hand but I'm looking into modernizing that system.

I like my dashboard super simple, but the content-viewer widget isn't filling the available space. I'm going to add a lot of content to this widget, so I'd like it to move right and fill in the remaining space. (screenshot)
screenshot_2018-09-18_11_16_03

How could I go about doing this? Thank you!!

Plugin conflicts with multilanguage site

While developing a site I installed many plugins and additional fields and so on. At some point I noticed my multilang site was not working properly.

Changing language was not working. I could change the language, the page was redirected (example.com/en), all the language variables were changed (for example $site->language() is changed correctly) and it was fine, but snippets fetching pages' content still fetched the default language content.

I finally found out it was caused by your plugin, this part:

// If the page doesn't exist yet, create it.
if(!site()->index()->findBy('intendedTemplate', 'content-viewer')) {
	site()->create('content-viewer', 'content-viewer', array(
		'title' => '',
		'text' => ''
	));
}

Not really sure how this affects multilang config, but it surely does. Just commenting this part and it works again.

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.