Giter VIP home page Giter VIP logo

examplenewsbundle's Introduction


Sulu logo


GitHub license GitHub tag (latest SemVer) Test workflow status GitHub commit activity GitHub contributors Packagist downloads


Sulu is a highly extensible open-source PHP content management system based on the Symfony framework. Sulu is developed to deliver robust multi-lingual and multi-portal websites while providing an intuitive and extensible administration interface to manage the full content lifecycle.

Have a look at the official Sulu website for a comprehensive list of Sulu's features, core values and use cases.


Sulu Slideshow


This repository contains the core framework of the Sulu content management system. The framework implements the functionality that is built into the Sulu content management system and therefore is a dependency of all Sulu projects.

If you want to start a new Sulu project, you might be interested in the sulu/skeleton template repository. If you are planning to extend your existing Sulu project, visit the Sulu organization on GitHub for a complete list of official Sulu bundles.

๐Ÿš€ย  Installation and Documentation

The sulu/skeleton repository provides a pre-configured project template to quick-start your development. Visit the official Sulu documentation to find out how to use the project template for starting your own Sulu project.

โค๏ธย  Community and Contributions

The Sulu content management system is a community-driven open source project backed by various partner companies. We are committed to a fully transparent development process and highly appreciate any contributions. Whether you are helping us fixing bugs, proposing new feature, improving our documentation or spreading the word - we would love to have you as part of the Sulu community.

๐Ÿ“ซย  Have a question? Want to chat? Ran into a problem?

We are happy to welcome you in our official Slack channel or answer your questions via GitHub Discussions! Obviously you can always reach out to us directly via the Sulu twitter account or post your question on StackOverflow with the official sulu tag.

๐Ÿคย  Found a bug? Missing a specific feature?

Feel free to file a new issue with a respective title and description on the the sulu/sulu repository. If you already found a solution to your problem, we would love to review your pull request! Have a look at our contribution guidelines to find out about our coding standards.

โœ…ย  Requirements

Sulu requires a PHP version higher or equal to 8.2 and is compatible with every Symfony version starting from 5.4. Have a look at the require section in the composer.json of the sulu/sulu core framework to find an up-to-date list of the requirements of Sulu content management system.

๐Ÿ“˜ย  License

The Sulu content management system is released under the under terms of the MIT License.

examplenewsbundle's People

Contributors

alexander-schranz avatar chirimoya avatar wachterjohannes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

examplenewsbundle's Issues

FOSRestBundle automatic pluralization

Q A
Bug? No
Feature? Unfortunately

Problem

In this ExampleNewsBundle a potential issue doesn't occur due to the nature of "news" being plural by default. Should someone try to recreate the steps to create his own bundle based on the pull requests or the blog posts, they may run into Route not found problems regarding the routing as FOSRestBundle defaults routes to plural.

Example

Creating a Bundle working with singular CarBundle results in different routes if you work with singular terms throughout the tutorial, ultimately ending up with singular and plural routes conflicting.

get_car_fields                         GET      ANY      ANY    /admin/api/car/fields.{_format}
get_car_list                           GET      ANY      ANY    /admin/api/car.{_format}
get_car                                GET      ANY      ANY    /admin/api/cars/{id}.{_format}
post_car                               POST     ANY      ANY    /admin/api/cars.{_format}
put_car                                PUT      ANY      ANY    /admin/api/cars/{id}.{_format}
delete_car                             DELETE   ANY      ANY    /admin/api/cars/{id}.{_format}

Solution

It is not necessary to change the entire tutorial, but it would be nice to remind the reader to work with plurals from the beginning and refer to this Symfony article to avoid this situation.

Grunt build task order is false

The build task order should be:

    grunt.registerTask('build:js', [
        'copy:templates',
        'uglify',
        'replace:build' /* this need to be the last task which should be done */
    ]);

Locale in url : error loading main.js

Hello,

After login on admin nothing is displayed and there is an error in console :

"Error: Script error for: /bundles/news/dist/main.js"

URL loaded contains locale '.../en/bundles/news/dist/main.js'.

How can I fix it ?

thanks

Custom frontend bundle

Hi.
I have problem with add custom frontend-only bundle. Debug:router return:
get_spalneo GET ANY ANY /api/spalneo.{_format}

but when i make get request, sulu return:
The path "/api/spalneo" does not exist.

`namespace App\ApiBundle\Controller;

use FOS\RestBundle\Controller\FOSRestController;
use Symfony\Component\HttpFoundation\Response;
use FOS\RestBundle\Controller\Annotations as Rest;

class ApiController extends FOSRestController
{
/**
* @rest\Get("/spalneo")
* @return Response
*/
public function getSpalneoAction()
{
return $response;
}
}`

api_spalneo: resource: "@ApiBundle/Resources/config/routing_api.xml" type: rest prefix: /api

Can anybody help me? Thanks a lot.

Support multi language and multi webspace

May you do another blog post, where you show how to integrate support for multi language and multi webspace? This would help to do bundles for complex customers and also publish them as open source because they are usable in every installation.

Add permissions tab to the backend

        if ($this->securityChecker->hasPermission(NewsAdmin::SECURITY_CONTEXT, 'security')) {
            $permissions = new ContentNavigationItem('Permissions');
            $permissions->setAction('permissions');
            $permissions->setDisplay(array('edit'));
            $permissions->setComponent('permission-tab@sulusecurity');
            $permissions->setPosition(50);
            $permissions->setComponentOptions(
                array(
                    'display' => 'form',
                    'type' => News::class,
                    'securityContext' => NewsAdmin::SECURITY_CONTEXT,
                )
            );

            $this->tabs[] = $permissions;
        }

Edit link at right of my line in datagrid

Hi, how to add an edit link on an empty column ?

I wanna have my datagrid with a column on each line, which have only an edit link.

Is this possible ?

Thanks for help !

Best Regards !

Make Newsitem a subtype of RoutableInterface

A very important feature in Sulu is that it not only allows to handle webpages, but is also capable to generate routes for entities. It would be very nice, if we had an example with an explanation in this bundle.

Wrong link to clone respo

Hi!

In your installation instruction there is :

git clone [email protected]:sulu-io/ExampleNewsBundle.git NewsBundle

I think there should be

https://github.com/sulu-io/ExampleNewsBundle.git NewsBundle

At least first one gives me error:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

and second one works :)

Would be great to add also small mention about

app/console assets:install --symlink --relative

somewhere here in installation instructions.

I know it's mentioned on blog ( I found it there) but earlier I just tried without it and had problem with missing symlinks.

Also adding info in installation instructions about database schema update would be nice if someone just want's to try quicly example from git. I forgot about it ;)

app/console doctrine:schema:update --force

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.