SimplCommerce icon indicating copy to clipboard operation
SimplCommerce copied to clipboard

Create/Edit page missing way to mark the page as unpublished

Open dom2049 opened this issue 8 months ago • 3 comments

Create/Edit page missing way to mark the page as unpublished or published. It shows only on the Pages list in a column and there is no way to update it.

dom2049 avatar Mar 26 '25 14:03 dom2049

I mean on the static content pages, on the list you can see the published status, but when you edit or create individual pages, there is no way to change this status.

I added it for myself by updating the model and page-form.html in the SimplCommerce.Module.Cms module, but it seems counterintuitive that it's not already there.

If you want to work on some static page, before publishing it...

Below is what I added in page-form.html

<div class="form-group">
    <label class="col-sm-2 control-label">{{::vm.translate.get('Is Published')}}</label>
    <div class="col-sm-10">
        <input type="checkbox" name="isPublished" ng-model="vm.page.isPublished" class="form-control" />
    </div>
</div>

https://snipboard.io/bgiDFx.jpg https://snipboard.io/IZOEHk.jpg https://snipboard.io/dl7j85.jpg https://snipboard.io/lKa09x.jpg https://snipboard.io/vNuLxC.jpg

ghost avatar Mar 26 '25 18:03 ghost

Sorry, I just removed my last comment, coz I confused with another project :)

hishamco avatar Mar 27 '25 00:03 hishamco

@dom2049 Can you check in your changes and do a pull request?

brookd-lab avatar May 04 '25 22:05 brookd-lab