Coder Social home page Coder Social logo

humhub / custom-pages Goto Github PK

View Code? Open in Web Editor NEW
28.0 15.0 50.0 8.97 MB

Create custom pages and widgets and share them with your users. Take advantage of a wide range of editing options, including HTML and Markdown.

PHP 67.41% JavaScript 17.58% CSS 0.48% HTML 14.52% Shell 0.01%

custom-pages's Introduction

Test Status

Custom Pages

The custom pages modules allows the creation of customized pages and snippets (sidebar elements) as well as on space and on global level.

Depending on content type and target the following content types are available:

  • MarkDown (HumHub Markdown Richtext based page)
  • Link (External link)
  • Iframe
  • Template
  • Html (Only available for global pages for security reasons)
  • PHP (requires further activation under Administration -> Custom Pages -> Settings)

By default the module supports the following targets for global pages:

  • Top Navigation
  • User Account Menu (Account Settings)
  • No Specific target (Direct link)

and global Snippets:

  • Dashboard

On space level the following page targets are supported by default:

  • Space Navigation

and snippets:

  • Stream Sidebar

custom-pages's People

Contributors

001101 avatar andystrobel avatar archblood avatar buddh4 avatar cebe avatar felixhahnweilheim avatar felli avatar gevorgmansuryan avatar h-yaroslav-wrk avatar humhub-bot avatar kesselb avatar luke- avatar marc-farre avatar masterhans avatar mbumpalumpa avatar richweber avatar semir1212 avatar utmostcreator avatar verement avatar yurabakhtin avatar

Stargazers

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

Watchers

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

custom-pages's Issues

encoding issue german

after update a link with a ueml; did not working anymore and also not working when newly created, so anywhere is a encoding issue.

Name of the wikipage: Übersicht der Plattform
Name in link: �bersicht der Plattform

greets

Issue Creating Database Entry

So after updating this module I am having problems with the module either not updating right, so I deleted it and tried re-installing it, but it turns out that the database entry isn't being created I am also having the same problem with Mail. Is there any way of fixing this?

Set a page as home page for a space

Hi,
I've created a page using a content type:

  • template,
  • markdown
    I've tried to apply this page as the homepage of this space, but it's not listed in the advanced settings of the space.
    Is there a specific configuration, something else I've missed ?
    Thanks a lot for your help.

sort content by ascending or descending

the current options are:
-sort by publish date
-sort by edit date
but the default is already the publish date and is only useful if i chose "edit date" and wanted to go back. is there a way to reverse the sorting so that if it goes back and forth between oldest>newest and newest>oldest ?

Module doesn't list

I cloned the module to humhub/protected/modules/ bit it doesn't appear on my humhub-admin-panel. what did i miss? i couldn't really find a howto on installing modules manually (other than: put it in the modules directory, activate in admin-panel)

Installation not possible

I tried to update the Module from Version 0.5.7 to latest, an error occured and the module is no longer installed, when i try to reinstall it, same error occurs.

Screenshot -> Error Message
bildschirmfoto 2016-09-14 um 11 39 39

Edit Page Button throw Error

if i click the edit page button i got an error (the error trace below) - looks like the route does not work ?

the custom page is an iframe page ... i believe this edit feature is for the html markdown ... cause the source is in the app ... an iframe is external source ? maybe this button should be visible only on html and markdown custom pages ?

the edit page button:

image

the error page:

image

1. in /var/www/html/humhub/protected/modules/custom_pages/modules/template/widgets/views/templatePageEditButton.php at line 30
2. in /var/www/html/humhub/protected/modules/custom_pages/modules/template/widgets/views/templatePageEditButton.php at line 30 – yii\base\ErrorHandler::handleError(8, 'Trying to get property of non-ob...', '/var/www/html/humhub/protected/m...', 30, ...)
3. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/var/www/html/humhub/protected/m...')
4. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile('/var/www/html/humhub/protected/m...', ['canEdit' => true, 'sguid' => null, 'editMode' => '1', 'pageId' => '2', ...])
5. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 149 – yii\base\View::renderFile('/var/www/html/humhub/protected/m...', ['canEdit' => true, 'sguid' => null, 'editMode' => '1', 'pageId' => '2', ...], humhub\modules\custom_pages\modules\template\widgets\TemplatePageEditButton)
6. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Widget.php at line 195 – yii\base\View::render('templatePageEditButton', ['canEdit' => true, 'sguid' => null, 'editMode' => '1', 'pageId' => '2', ...], humhub\modules\custom_pages\modules\template\widgets\TemplatePageEditButton)
7. in /var/www/html/humhub/protected/modules/custom_pages/modules/template/widgets/TemplatePageEditButton.php at line 50 – yii\base\Widget::render('templatePageEditButton', ['canEdit' => true, 'sguid' => null, 'editMode' => '1', 'pageId' => '2', ...])
8. in /var/www/html/humhub/protected/humhub/components/Widget.php at line 52 – humhub\modules\custom_pages\modules\template\widgets\TemplatePageEditButton::run()
9. in /var/www/html/humhub/protected/modules/custom_pages/modules/template/widgets/views/templatePageEditStackMenuButton.php at line 3 – humhub\components\Widget::widget()
10. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/var/www/html/humhub/protected/m...')
11. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile('/var/www/html/humhub/protected/m...', [])
12. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 149 – yii\base\View::renderFile('/var/www/html/humhub/protected/m...', [], humhub\modules\custom_pages\modules\template\widgets\TemplatePageEditStackMenuButton)
13. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Widget.php at line 195 – yii\base\View::render('templatePageEditStackMenuButton', [], humhub\modules\custom_pages\modules\template\widgets\TemplatePageEditStackMenuButton)
14. in /var/www/html/humhub/protected/modules/custom_pages/modules/template/widgets/TemplatePageEditStackMenuButton.php at line 22 – yii\base\Widget::render('templatePageEditStackMenuButton')
15. in /var/www/html/humhub/protected/humhub/components/Widget.php at line 52 – humhub\modules\custom_pages\modules\template\widgets\TemplatePageEditStackMenuButton::run()
16. in /var/www/html/humhub/protected/humhub/widgets/BaseStack.php at line 92 – humhub\components\Widget::widget([])
17. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Widget.php at line 102 – humhub\widgets\BaseStack::run()
18. in /var/www/html/humhub/protected/humhub/views/layouts/main.php at line 141 – yii\base\Widget::widget()
19. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 325 – require('/var/www/html/humhub/protected/h...')
20. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/View.php at line 247 – yii\base\View::renderPhpFile('/var/www/html/humhub/protected/h...', ['content' => ' <iframe id="iframepage" ...'])
21. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Controller.php at line 393 – yii\base\View::renderFile('/var/www/html/humhub/protected/h...', ['content' => ' <iframe id="iframepage" ...'], humhub\modules\custom_pages\controllers\ViewController)
22. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Controller.php at line 379 – yii\base\Controller::renderContent(' <iframe id="iframepage" ...')
23. in /var/www/html/humhub/protected/modules/custom_pages/controllers/ViewController.php at line 38 – yii\base\Controller::render('iframe', ['url' => 'http://192.168.33.22:8080/starts', 'navigationClass' => 'TopMenuWidget'])
24. in /var/www/html/humhub/protected/modules/custom_pages/controllers/ViewController.php at line 56 – humhub\modules\custom_pages\controllers\ViewController::actionIndex()
25. humhub\modules\custom_pages\controllers\ViewController::actionView()
26. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([humhub\modules\custom_pages\controllers\ViewController, 'actionView'], [])
27. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\base\InlineAction::runWithParams(['r' => 'custom_pages/view/view', 'id' => '2', 'editMode' => '1'])
28. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\base\Controller::runAction('view', ['r' => 'custom_pages/view/view', 'id' => '2', 'editMode' => '1'])
29. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/web/Application.php at line 87 – yii\base\Module::runAction('custom_pages/view/view', ['r' => 'custom_pages/view/view', 'id' => '2', 'editMode' => '1'])
30. in /var/www/html/humhub/protected/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(humhub\components\Request)
31. in /var/www/html/humhub/index.php at line 25 – yii\base\Application::run()
$_GET = [
    'r' => 'custom_pages/view/view',
    'id' => '2',
    'editMode' => '1',
];

$_COOKIE = [
    '_csrf' => '4f32da4cfd792e360f2c62e92730f3bf8e8224977676076bd06165e93658735ea:2:{i:0;s:5:"_csrf";i:1;s:32:"Rl_MLi-2ig6-wmjLpfU2EHZPf3ayrcWd";}',
    'pm_getting-started-panel' => 'expanded',
    'pm_space-members-panel' => 'expanded',
    'language' => '268d01e2dcc7cc41c951c8ce9b050d9c9f79a7a8338e14ed68a77a5e3d59cb2ba:2:{i:0;s:8:"language";i:1;s:2:"de";}',
    'pm_user-tags-panel' => 'expanded',
    'pm_user-spaces-panel' => 'expanded',
    'pm_profile-following-panel' => 'expanded',
    'pm_profile-friends-panel' => 'expanded',
    'XSRF-TOKEN' => 'eyJpdiI6Im1sZXRsS2E3YWE2UFwvZzlQcHAzVmJnPT0iLCJ2YWx1ZSI6Ik5RQlZSb2QxVkxvYnh6dkE2dmh1SDMwXC9TYzlOMGVKUWdvT3B0RWtCd2t4a2NYbXNJUGNhYVlUbjVNMTMzXC9IdE5TKzVpSmZGR1l6c1wvYUIwK0NTVmxRPT0iLCJtYWMiOiI1Y2ZhMGI2N2FhN2ZjOGI4MDQ4ZDdmYWRkMDk3YmRhMTU4N2QzYjU3MmFjMTU4MGYyYzU5NjU5YjMzNTljNWQ4In0=',
    'laravel_session' => 'eyJpdiI6InhDR3FnSmxzRElyYTVTV3RMRGJ3MkE9PSIsInZhbHVlIjoiRExvS1Q2dDlKQ1NnWTVnUitTdzVFWHpLRTZvUlhrSDlNYzVTVHVPRmFVUmlBbUN0VlpYckU3UmZORDlnTTI1VzVwOWI4Sk9GUURxeWRlRTF5UHBLckE9PSIsIm1hYyI6ImNiNjY0NDVlYjQ3ZDQxNTQ3YTA5MjFhODIzM2NmMGRkNTUyZTUyNDg3N2ZmNWZjZDIxMTNlZWQzYzAwOGI0OWQifQ==',
    'PHPSESSID' => '1j9auql5o4qb6d8f3pcod1e266',
    '_identity' => '96bc6101a889cbd7c4874c2a95d4a2896e4f42aea6391f96a1f1312b14647b51a:2:{i:0;s:9:"_identity";i:1;s:50:"[4,"08d95edd-69c9-428a-ab94-9d754de62ea4",2592000]";}',
];

$_SESSION = [
    '__flash' => [],
    '__returnUrl' => [
        0 => '/custom_pages/view/index',
        'id' => 2,
    ],
    'currentAuthClientId' => 'ldap',
    '__id' => 4,
    '__expire' => 1471035288,
];

Module broke App

I tried to install the module but when i enabled most content of humhub app dissapear and evrything not respond. I needed to delete the key custome_pages in the modules table in order to delete the module. Anyway, do you have any idea of what happen ?

Alt text

Can't update humhub-modules-custom-pages via Module Manager

While updating Custom Pages via Modul Manager we receive the following error message. We hat to fallback to an backuped version of the module to make it run again.

ERROR Tue, 08 Nov 2016 10:34:08 +0100 Zend\Http\Client\Adapter\Exception\RuntimeException exception 'Zend\Http\Client\Adapter\Exception\RuntimeException' with message 'Error in cURL request: Operation timed out after 29943 milliseconds with 4537970 out of 9412694 bytes received' in /var/www/humhub/protected/vendor/zendframework/zend-http/src/Client/Adapter/Curl.php:428 Stack trace: #0 /var/www/humhub/protected/vendor/zendframework/zend-http/src/Client.php(1387): Zend\Http\Client\Adapter\Curl->write('GET', Object(Zend\Uri\Http), '1.1', Array, '') #1 /var/www/humhub/protected/vendor/zendframework/zend-http/src/Client.php(893): Zend\Http\Client->doRequest(Object(Zend\Uri\Http), 'GET', true, Array, '') #2 /var/www/humhub/protected/humhub/modules/admin/libs/OnlineModuleManager.php(84): Zend\Http\Client->send() #3 /var/www/humhub/protected/humhub/modules/admin/controllers/ModuleController.php(102): humhub\modules\admin\libs\OnlineModuleManager->install('custom_pages') #4 [internal function]: humhub\modules\admin\controllers\ModuleController->actionInstall() #5 /var/www/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #6 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(154): yii\base\InlineAction->runWithParams(Array) #7 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Module.php(454): yii\base\Controller->runAction('install', Array) #8 /var/www/humhub/protected/vendor/yiisoft/yii2/web/Application.php(87): yii\base\Module->runAction('admin/module/in...', Array) #9 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(humhub\components\Request)) #10 /var/www/humhub/index.php(25): yii\base\Application->run() #11 {main}

Add setting to allow page type html for spaces.

The page type html is disallowed for spaces by default, since it allows space admins to incject scripts etc. This should at least be possible for system admins or by allowing it in the settings (or perhaps goup permission).

Integrate Custom Pages Extended

Would it be possible to get custom pages extended integrated into the 0.20+ releases as the person who created it is no longer supporting it.

Features like embedded php pages and custom widgets would be really useful and add much depth to the HumHub product overall.

iFrame only half the size of the screen

With Beta 3 of 1.2.0 and Version 0.7.4 of Custom Pages the iFrames seem to be limited to about half the hight of the screen when opening them initially. When you then change the size of the browser window it will take up the full screen again. Opening the iframe again it´s half the size again. Screenshots showing “before” and “after” situation…
2017-03-20 23_42_52-datei - iron
2017-03-20 23_43_42-datei - iron

Integrated Page

Hello friends
It is possible to open any link within the window of humhub.. using custom pages

From already thank you for your help

Link page using short URL returns page not found...

USer testing video:
https://utest-dl.s3.amazonaws.com/7387/13130/107549/null/bugAttachment/Bug2107300_link%20page%20doesn%27t%20work.mp4?AWSAccessKeyId=AKIAJVVOIXUIFRTEEEKQ&Expires=1782483053&Signature=9Wg6H0XgLAq%2Fio0S9Qv5xj62gak%3D

Found that using a fully qualified URL the feature does work.

Recommendation: Add validation on the custom_pages/container/edit form that check the URL before submission as well as on the model to ensure the input value is a URL when saving a link to the model's table.

Editor

it is possible that they integrate with an editor like CKEditor

Change URL Prefix

The custom pages module is nice, however, it is not nice, for a established, or well known community to scream that it uses modules. For example, the URL mysite.com/custom_page/1 screams that the user has no idea how to create a website with a simple page.

With that in mind, maybe the URL denotion for custom pages simply be "page" or "p" so the URL would be clean, and professional and look like mysite.com/p/1 or mysite.com/page/1

iFrame not working

Hi
First of all, great piece of software, thank you for that!
I am trying to include an external page via iframe, but I am not able to visualize the page, it still remains in loading mode... means the loading symbol does not disappear and the website will not be opened.
I have reproduced this error also on your testinstance on hubhub.com
Please let me know how to fix it
Thank you
BR, Gino

Space pages cannot be deleted

Clicking delete button at a space custom page links to list of custom pages in system administration. Space custom page does not get deleted.

Bug: Loading animation don't go away on Snippets

Very very cool feature with the snippets, thats so awesome!
Have now used it for a PHP iFrame, it's just a plain PHP File and it works good, but the loading animation don't go away, have also tested to embed it into a iframe HTML file, but also not working.

Is there a trick to disable the loading animation?

Thanks!!

Fatal error: Call to a member function getVersion() on a non-object in E:\xampp\htdocs\humhub\protected\modules_core\admin\libs\OnlineModuleManager.php on line 181

I had recently cloned the humhum to my local server and I tried to add install this module and I get the following error

Fatal error: Call to a member function getVersion() on a non-object in E:\xampp\htdocs\humhub\protected\modules_core\admin\libs\OnlineModuleManager.php on line 181

config I had done

'/custom-pages-slide/*/autostart.php' on onfing/_defaluts.php under modules

Please let us know if I am doing anything wrong

Visibility by Logged In / Guest

I have a feature request for the custom pages module. I would like to not only have "Only visible for admins" but also "Only visible for logged in users" so that you can create custom pages which are only visible if you have valid credentials (or is there another way to do that?).

Bug: Order Issue in Spaces

Even if I have the order number '9999999' the custom page will not get under linklist, it is always just one point over linklist.

Custom Pages - icons list enhancement

Hello,

i am very annoyed of scrolling the huge list for the menu items for the custom pages, it would be thousand times better if the icons just come up as the smilies without the names or if there are names (what would also be good), then please without the fa- in front of, so you could just press a button and go to the first letter.

thanks!!

Cannot delete / deactivate module

On 0.20.0-beta.2 I cannot delete nor deactivate the custom pages module.

If I try to do so, I got an error like:

Database Exception – yii\db\Exception

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tuxeros.custom_pages_container_page' doesn't exist
The SQL being executed was: SELECT * FROM `custom_pages_container_page`
Error Info: Array
(
    [0] => 42S02
    [1] => 1146
    [2] => Table 'tuxeros.custom_pages_container_page' doesn't exist
)
↵
Caused by: PDOException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tuxeros.custom_pages_container_page' doesn't exist

in /srv/tuxeros/protected/vendor/yiisoft/yii2/db/Command.php at line 837

Custom Pages in User Account Menu

I'm having an issue being able to create custom pages that are for Account Menu, after creating them when you go to the account settings and click the link to the custom page I get an internal server error.

"Table already exists" while updating

When i try to update "custom pages" it says "table already exists".
I don´t want to mess something up so how can i "uninstall" instead of only deactivate?

or do i need to drop tables manually? and if yes which are the right one?

Thanks!

Twig Exception

Having no clue why and what it says, but maybe it is good for debugging.

But what I can say, that I had issues with the new template engine, the editor did not worked correctly, just after using the live edit feature the template has worked correctly, which is no big deal right now, having just played around with a webmail login and got it working now.

Twig_Error_Runtime exception 'yii\base\ErrorException' with message 'Object of class humhub\modules\custom_pages\modules\template\models\OwnerContentVariable could not be converted to int' in /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Environment.php(403) : eval()'d code:23 Stack trace: #0 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Environment.php(403) : eval()'d code(23): yii\base\ErrorHandler->handleError(8, 'Object of class...', '/home/admin/web...', 23, Array) #1 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Template.php(387): __TwigTemplate_cbf9550b72104afb53f7c5950e0b3175fbe84cdf803ad069361c893444c80fc7->doDisplay(Array, Array) #2 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #3 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Template.php(366): Twig_Template->display(Array) #4 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Environment.php(347): Twig_Template->render(Array) #5 /path/to/humhub/protected/modules/custom_pages/lib/templates/twig/TwigEngine.php(23): Twig_Environment->render('webmail', Array) #6 /path/to/humhub/protected/modules/custom_pages/modules/template/models/Template.php(182): humhub\modules\custom_pages\lib\templates\twig\TwigEngine->render('webmail', Array) #7 /path/to/humhub/protected/modules/custom_pages/modules/template/views/admin/preview.php(19): humhub\modules\custom_pages\modules\template\models\Template->render(NULL, false) #8 /path/to/humhub/protected/vendor/yiisoft/yii2/base/View.php(325): require('/home/admin/web...') #9 /path/to/humhub/protected/vendor/yiisoft/yii2/base/View.php(247): yii\base\View->renderPhpFile('/home/admin/web...', Array) #10 /path/to/humhub/protected/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/admin/web...', Array, Object(humhub\modules\custom_pages\modules\template\controllers\LayoutAdminController)) #11 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(378): yii\base\View->render('@custom_pages/m...', Array, Object(humhub\modules\custom_pages\modules\template\controllers\LayoutAdminController)) #12 /path/to/humhub/protected/modules/custom_pages/modules/template/controllers/AdminController.php(186): yii\base\Controller->render('@custom_pages/m...', Array) #13 [internal function]: humhub\modules\custom_pages\modules\template\controllers\AdminController->actionPreview('4', NULL, NULL) #14 /path/to/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #15 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(154): yii\base\InlineAction->runWithParams(Array) #16 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Module.php(454): yii\base\Controller->runAction('preview', Array) #17 /path/to/humhub/protected/vendor/yiisoft/yii2/web/Application.php(87): yii\base\Module->runAction('custom_pages/te...', Array) #18 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(humhub\components\Request)) #19 /path/to/humhub/index.php(25): yii\base\Application->run() #20 {main} Next exception 'Twig_Error_Runtime' with message 'An exception has been thrown during the rendering of a template ("Object of class humhub\modules\custom_pages\modules\template\models\OwnerContentVariable could not be converted to int") in "webmail" at line 2.' in /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Template.php:402 Stack trace: #0 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #1 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Template.php(366): Twig_Template->display(Array) #2 /path/to/humhub/protected/modules/custom_pages/vendors/Twig/Environment.php(347): Twig_Template->render(Array) #3 /path/to/humhub/protected/modules/custom_pages/lib/templates/twig/TwigEngine.php(23): Twig_Environment->render('webmail', Array) #4 /path/to/humhub/protected/modules/custom_pages/modules/template/models/Template.php(182): humhub\modules\custom_pages\lib\templates\twig\TwigEngine->render('webmail', Array) #5 /path/to/humhub/protected/modules/custom_pages/modules/template/views/admin/preview.php(19): humhub\modules\custom_pages\modules\template\models\Template->render(NULL, false) #6 /path/to/humhub/protected/vendor/yiisoft/yii2/base/View.php(325): require('/home/admin/web...') #7 /path/to/humhub/protected/vendor/yiisoft/yii2/base/View.php(247): yii\base\View->renderPhpFile('/home/admin/web...', Array) #8 /path/to/humhub/protected/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/admin/web...', Array, Object(humhub\modules\custom_pages\modules\template\controllers\LayoutAdminController)) #9 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(378): yii\base\View->render('@custom_pages/m...', Array, Object(humhub\modules\custom_pages\modules\template\controllers\LayoutAdminController)) #10 /path/to/humhub/protected/modules/custom_pages/modules/template/controllers/AdminController.php(186): yii\base\Controller->render('@custom_pages/m...', Array) #11 [internal function]: humhub\modules\custom_pages\modules\template\controllers\AdminController->actionPreview('4', NULL, NULL) #12 /path/to/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #13 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(154): yii\base\InlineAction->runWithParams(Array) #14 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Module.php(454): yii\base\Controller->runAction('preview', Array) #15 /path/to/humhub/protected/vendor/yiisoft/yii2/web/Application.php(87): yii\base\Module->runAction('custom_pages/te...', Array) #16 /path/to/humhub/protected/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(humhub\components\Request)) #17 /path/to/humhub/index.php(25): yii\base\Application->run() #18 {main}

Snippets can be seen without login

I am using snippets on the sidebar of the dashboard. I can change wether all logged in users or only admins can see it. I want to show it on the public dashboard if no one is logged in. Could you add an option to show snippets publicly?

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.