JSP页面和产品明细页面的绑定关系在Hybris WCMS cockpit什么地方能够找到
【摘要】 问题productLayout2Page.jsp和product detail page的绑定关系在Hybris WCMS cockpit什么地方能够找到点击了product list里的product image,会跳转到detail page:target jsp的url在这个方法里计算出来:算出来的结果:也就是这个文件: 问题productLayout2Page.jsp和produc...
问题
productLayout2Page.jsp和product detail page的绑定关系在Hybris WCMS cockpit什么地方能够找到
点击了product list里的product image,会跳转到detail page:
target jsp的url在这个方法里计算出来:
算出来的结果:
也就是这个文件:
问题
productLayout2Page.jsp和product detail page的绑定关系在WCMS cockpit什么地方能够找到?
这两天内部transfer忙着交接,没有及时回复。
productLayout2Page.jsp和product detail page的绑定关系是在以下的impex里面插入的
INSERT_UPDATE PageTemplate;$contentCV[unique=true];uid[unique=true];name;frontendTemplateName;restrictedPageTypes(code);active[default=true] ;;ProductDetailsPageTemplate;Product Details Page Template;product/productLayout2Page;ProductPage
依据个人经验,wcms主要还是要领会思路,不要迷失在具体的代码里,因为画面是自动生成的。
WCMS–Page template–componentslot–component–cmsproductlistcomponent.jsp–productListerItem.tag
确实,这里注释写的很清楚。
登录Google Cloud platform,创建一个新的Kubernetes Cluster:
该集群的node个数选择为1,从Machine type下拉列表里选择CPU配置:
展开Advanced Edit,选择该Kubernetes集群安装所在的操作系统的镜像类型:
选择ubuntu,磁盘类型选择SSD:
点击Create,得到一个Kubernetes cluster:
The images for these containers will be pulled from the public Docker repository and store. The containers will be connected to each other and have some ports exposed to the internet.
Kubernetes集群创建好之后,点击Connect,
即可在Google Cloud Shell里用kubectl命令行访问这个Kubernetes cluster:
创建一个新的secret:
kubectl create secret docker-registry docker-secret --docker-server=https://index.docker.io/v1/ --docker-username=jerry password=jerrywang --docker-email=jerry.wang@gmail.com
在Google Cloud platform的Kubernetes cluster上,新建一个hxe.yaml文件:
将如下内容拷贝进yaml文件:
kind: ConfigMap
apiVersion: v1
metadata:
creationTimestamp: 2018-01-18T19:14:38Z
name: hxe-pass
data:
password.json: |+
{"master_password" : "HXEHana1"}
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: persistent-vol-hxe
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 150Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/hxe_pv"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: hxe-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hxe
labels:
name: hxe
spec:
selector:
matchLabels:
run: hxe
app: hxe
role: master
tier: backend
replicas: 1
template:
metadata:
labels:
run: hxe
app: hxe
role: master
tier: backend
spec:
initContainers:
- name: install
image: busybox
command: [ 'sh', '-c', 'chown 12000:79 /hana/mounts' ]
volumeMounts:
- name: hxe-data
mountPath: /hana/mounts
volumes:
- name: hxe-data
persistentVolumeClaim:
claimName: hxe-pvc
- name: hxe-config
configMap:
name: hxe-pass
imagePullSecrets:
- name: docker-secret
containers:
- name: hxe-container
image: "store/saplabs/hanaexpress:2.00.033.00.20180925.2"
ports:
- containerPort: 39013
name: port1
- containerPort: 39015
name: port2
- containerPort: 39017
name: port3
- containerPort: 8090
name: port4
- containerPort: 39041
name: port5
- containerPort: 59013
name: port6
args: [ "--agree-to-sap-license", "--dont-check-system", "--passwords-url", "file:///hana/hxeconfig/password.json" ]
volumeMounts:
- name: hxe-data
mountPath: /hana/mounts
- name: hxe-config
mountPath: /hana/hxeconfig
- name: sqlpad-container
image: "sqlpad/sqlpad"
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: hxe-connect
labels:
app: hxe
spec:
type: LoadBalancer
ports:
- port: 39013
targetPort: 39013
name: port1
- port: 39015
targetPort: 39015
name: port2
- port: 39017
targetPort: 39017
name: port3
- port: 39041
targetPort: 39041
name: port5
selector:
app: hxe
---
apiVersion: v1
kind: Service
metadata:
name: sqlpad
labels:
app: hxe
spec:
type: LoadBalancer
ports:
- port: 3000
targetPort: 3000
protocol: TCP
name: sqlpad
selector:
app: hxe
第77行指定了HANA express对应的容器镜像文件:
“store/saplabs/hanaexpress:2.00.033.00.20180925.2”
使用命令行创建资源:
kubectl create -f hxe.yaml:
创建成功,使用命令行kubectl describe pods查看成功创建的资源:
使用命令行查看数据库是否成功启动:
kubectl logs deployment/hxe -c hxe-container
看到startup finished的消息,说明启动成功:
使用命令行进入pod内部,得到shell:
kubectl exec -it <<pod-name>> bash
打开SQL console:
hdbsql -i 90 -d systemdb -u SYSTEM -p HXEHana1
【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)