Giter Site home page Giter Site logo

wintercms / wn-pages-plugin Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 21.0 1.34 MB

Static Pages plugin for Winter CMS

Home Page: https://wintercms.com/

License: MIT License

PHP 78.98% CSS 1.17% JavaScript 13.01% Less 1.06% HTML 5.79%
wintercms plugin static pages content hacktoberfest

wn-pages-plugin's People

Contributors

acasar avatar alekseybobkov avatar bennothommo avatar blazorazem avatar cracki avatar daftspunk avatar damsfx avatar datune avatar felixinx avatar gabsource avatar gergo85 avatar gpasztor87 avatar jan-vince avatar jaxwilko avatar jimcottrell avatar luketowers avatar mahony0 avatar marininicola avatar merodeador avatar mjauvin avatar pvullioud avatar quangtrongonline avatar rike-cz avatar robertalexa avatar romainmazb avatar theservat avatar tobias-kuendig avatar tomaszstrojny avatar vojtasvoboda avatar webvpf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wn-pages-plugin's Issues

Two snippets of the same type share the same values

  • Winter CMS Build: 1.1.8
  • Pages Plugin Version: 2.0.0
  • PHP Version: 7.4.27

Description:

When adding two snippets of the same type, both will render with the same property values despite them having different values set.
Might be related to #12

Steps To Reproduce:

  • Add two snippets of the same type to a static page but with different property values
  • Load the page in the browser -> both snippets will share the property values of the first snippet

Unable to insert link in richeditor

  • Winter CMS Build: 1.2.3
  • Pages Plugin Version: 2.1.2
  • PHP Version: 8.1.16

Description:

Unable to insert link to selected text

Steps To Reproduce:

  1. Select any static page( The select page must define richeditor varriable)
  2. Input texts to the richtexteditor
  3. First try is succesfull
  4. Second time or later are unable to input thel ink because the input link modal is closed immediately.

Attached the screencast:

WN_input_link_issue.mp4

Missing keywords field

Hello,

In page settings i have 2 tabs, second include only 2 fields
(title) - this for page title
(meta title) - this for SEO title in browser
(meta description) - this SEO description

Where keywords field? How add this field to page settings tab.

Translated content not duplicated

Winter CMS Build: 1.2.5
Pages Plugin Version: 2.1.3
PHP Version: 8.2.0
Translate 2.1.6 (first language EN, second language IT)

Description:

When a Page with its translations is duplicated and saved, its translated content are not duplicated

Steps To Reproduce:

  1. create a page, translate its contents and save it
  2. duplicate this page
  3. edit its title, url and body in the original language
  4. select the second language but there is nothing
img5

Thanks.

isActive marker for / url

  • Winter CMS Build: 1.2.1
  • Pages Plugin Version: 2.0.2
  • PHP Version: 8.0

Description:

A page with / url is not marked as active (isActive = false) when visiting website home page.

Steps To Reproduce:

Add some statics pages, one having / has URL.

..\meta\static-pages.yaml file :

static-pages:
    index: {  }
    page2: {  }
    page3: {  }

...\content\static-pages\index.htm file :

[viewBag]
title = "Home
url = "/"
layout = "default"
is_hidden = 0
navigation_hidden = 0
==
Lorem ipsum dolor sit amet consectetur adipisicing elit. Laboriosam, impedit.

Setting a menu :

name: 'Top - Navbar'
items:
    -
        title: main
        nesting: null
        type: all-static-pages
        url: null
        code: ''
        reference: null
        cmsPage: null
        replace: 1
        viewBag:
            isHidden: '0'
            cssClass: ''
            isExternal: '0'

Visiting http://acme.tld doesn't mark the menu item as active, while visiting http://acme.tld/ does.
I am missing something ?

WYSIWYG Insert Link, Insert Image, and Insert Audio Menus Close Too Quickly

  • Winter CMS Build: 1.2.1
  • Pages Plugin Version: 2.1.2
  • PHP Version: 8.2.0

Description:

The Insert Link, Insert Image, and Insert Audio menus close quickly when attempting to use these menus more than once without refreshing the page. Here is an example of this happening with the Insert Link menu.
link-menu

When editing an existing link the closes quickly on the first try, but a second attempt is usually successful and seems to reset the behavior for this menu and the menu displayed when using the Insert Link button on the WYSIWYG menu bar. Here is an example that shows how I was able to create a new link, but the Edit Link window closes quickly on the first attempt to edit the link. The window remains open on the second attempt.

edit-link

The window also closes quickly after I update a value in one of the inputs in the link menu and then attempt to update the value in the other input.

The Insert Video and Insert Audio menus seem to behave in a similar fashion.

Steps To Reproduce:

  • Open a static page
  • Select the text and then create a link using the Insert Link button in the WYSIWYG menu bar
  • Try to repeat the above step or attempt to edit the existing link.

How to show "Last Modified" date on frontend

Hello,

image

help please, can't find how to show this data on frontend? Want to show this near title - this is very useful information - shows the relevance of the article.

Thank you very much in advance.

Template not recognized

Hi, yesterday I have install fresh (web installer) wintercms. Add winter.pages plugin. To my template add static page component as usual. Then on ma new static page I chose my template. But I get an error.

ArgumentCountError: Too few arguments to function Twig\Environment::loadTemplate(), 1 passed in /usr/home/Eternia/domains/eternia.usermd.net/public_html/stan/plugins/winter/pages/classes/Controller.php on line 79 and at least 2 expected in /usr/home/Eternia/domains/eternia.usermd.net/public_html/stan/vendor/twig/twig/src/Environment.php:327

Same error as if I do not hook up template to static page. I so far try to chose another template / turn off plugins, same result, same error.

Thanks!

Snippet properties not updating

  • Winter CMS Build: 1.1.8
  • Pages Plugin Version: 2.0.0
  • PHP Version: 7.4.27

Description:

When adding a snippet to a static page at first the html content gets rendered correctly. When changing the properties afterwards, the generated markup in the pages template file is updated, but the markup in the browser is still displaying the previous value.

Clearing caches isn't helping either.

Steps To Reproduce:

  • Create a snippet with at least one property and add it to a static page
  • Load the page with the snippet.
  • Change the property value of the snippet
  • Reload the page -> the old value is still shown

Automatic generated slug not detected when saving new page

  • Winter CMS Build: 1.1.8 c15d216cc77f76fa0d50bc29fb098dae19a033e1
  • Pages Plugin Version: 2.0.0
  • PHP Version: 7.4

Description:

When creating a new static page without manually entering an URL the URL generated from the entered title is not detected.

Steps To Reproduce:

  • I create a new static page
  • I enter a title
  • the slug get's automaticly generated
  • I try to save the page
  • A validation error shows up that the URL is required

Cannot install plugin via composer

Cannot install plugin via composer with this message.
"Could not find a matching version of package wintercms/wn-pages-plugin. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev)."

Can't translate the pages

  • Winter CMS Build: 1.2.1
  • Pages Plugin Version: 2.0.2
  • PHP Version: 8.2

Description:

I'm trying to get this to work with Winter.Translate (v.2.1). But I can not get them to work together. The only field I can translate is the url-field, nothing else. And when I use already translated pages from an old installation, it can't shift between the languages.

Steps To Reproduce:

Install Winter.Translate and Winter.Pages via composer and then try to translate the fields in the pages.

How too add support for Hindi language

  • Winter CMS Build: 1.2.5
  • Pages Plugin Version: 2.1.2
  • PHP Version: 8.3.6

Description:

Html field in pages plugin not work correctly with hindi language.
It Blog plugin all same in main field.

Steps To Reproduce:

Hindi

Text for sample

<p class="hosting__text">किसी भी आवश्यकता के अनुरूप लचीली वर्चुअल होस्टिंग योजनाएँ। आपकी साइट के लिए उच्च गति और सुरक्षा के साथ व्यावसायिक होस्टिंग।</p>
<div class="hosting__table">

Feature request: Static links

I thought it might be useful to be able to define a list of external URLs that can be used throughout the website. Maybe let me start with an example when I think this might be useful:

Say you have a personal website and you want to put a link to your LinkedIn page in the main menu, in the page's footer, on the home page, on the contact page, and randomly located on several other pages on your website.

All of those would have to be hard-coded in the source code with the URL. Therefore, any changes to that URL would require a search and replacement of all the places it could be in your source code, which could be error-prone. Also, the URLs themselves might be too long to remember. So my idea is to add something called "Static links" to this plugin. You would define a series of URLs with their respective ID (code). Then to link to that URL anywhere, you would do something like:

{{ 'linkedin'|link }}

Also, in the menu editor section of this plugin add a "Static link" type.

Would you guys think something like this would be useful to add?

WYSIWYG can't translate internal links

  • Winter CMS Build: 1.2.2
  • Pages Plugin Version: 2.1.2
  • PHP Version: 8.1.21
  • Translate 2.1.3

Description:

I have different translated Pages.
Sometimes, I need to add a link between two of these Pages in the content with the editor by the "Link" icon.
When I am in the main language, everything works.
When I switch to the translated version of the content and click the "Link" icon, the search field is able to find only the page in the original language, not the right translated version.

Steps To Reproduce:

  1. select the main language (IT)
  2. add a second language (EN)
  3. create a Page in the main language ( page-italian)
  4. translated this page (page-english)
  5. create in the same way another page (page-italian-bis, page-english-bis)
  6. re-open "page-italian", select a word and add a link to "page-italian-bis"
  7. switch to the english version and try to add a link to "page-english-bis"

Thanks in advanced.

wrong "Unsaved changes" notification after duplication

Winter CMS Build: 1.2.5
Pages Plugin Version: 2.1.3
PHP Version: 8.2.0

Description:

When a Page is duplicated and saved ("The page has been successfully saved.") the little icon on the right of the tab doesn't change (always a circle, not a X) and the system seems don't understand its status.

Steps To Reproduce:

  1. create a page and save it
  2. duplicate this page
  3. edit its title, url and body (image1)
  4. save it ("The page has been successfully saved." appears) (image2)
  5. close it and the original one
  6. the message "Close the tab? Unsaved changes will be lost." appears (image3)

Thanks.
img1
img2
img3

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.